Working in WordPress here. As you may know, all of the typical solutions for displaying upcoming events in WordPress are awful, so I'm accomplishing it with simple custom fields. Each event the user will enter they will enter a Numeric date "YYYYMMDD".
What I need to find out is how to code in PHP for the script to first get php:the...
Hello
I'm trying to understand some of the function in WordPress, but I can't get my head around what apply_filters(...) actually does.
Is someone able to clear this up for me with a few examples?
Cheers
Turgs
...
I'm rewriting a template for a wordpress based site which has some issues with load speed and I'm looking for the best way to speed things up on the code side first.
Since the site uses many "boxes" (like headlines, most views, recent comments, post of the week, and so on) which are reused in many different pages, I thought about a syst...
I need to link to a category in my wordpress site. The following code works, somewhat:
<?php
// Get the ID of a given category
$category_id = get_cat_ID( 'People' );
// Get the URL of this category
$category_link = get_category_link( $category_id );
?>
My problem is that it includes /category/ in the url, whic...
I am currently setting up an online community for the first time. I am a frequent worpress user, yet this one problem occurs:
I don't like the section name "wire". I'd much rather use something like "guestbook" or "short note" for it, but I cannot find the place to change it in the backend. It is not in the theme's CSS editor.
Same goe...
i am using a plugin in wordpress that it should be translated into persian (utf8), the page encoding is correct but when i edit the plugin in control panel editor's page it will become question marks, for example see this page http://farsi.tikatel.com/register/
the form in body content is plugin which has been translated into persian but...
I am adding some additional logic to page.php in a wordpress theme.
This theme already has 4 sidebar widgets (north, south, east, west).
I need to get the text that is entered into a text widget from the wp-admin widget panel within my page.php code. This logic is "outside the wordpress loop".
...
This is the new version being used by wordpress...
RewriteEngine On
RewriteBase BASE/
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin...
I was wondering...if any coding expert out there could spare a few minutes to help me out with a tiny problem? It's something to do with the alt image text.
You see, whenever I upload an image, the alt text for it doesn't display properly. You can have a look here ==> http://buywerewolfcostume.com/. This is how it's displaying in the so...
Is there a wordpress plug-in which enables you to attach image gallery to your news/post?
...
Hello, I added a parameter in the URL ('lang') that sets the language in which
displays the contents of the post. wp_query-> query_vars [ 'lang']
is set on the home page but not in the individual post. Why?
Thanks!!!!
...
I would like that the RSS entries titles be like this:
"this is the post title [category1, category4]"
In square brackets are listed the categories in which the post is filed.
I first modified the wp-feed.php file, but it's dirty: every wordpress update will erase my changes. So i think i can do this via add_filter. I set it up like t...
Doing something like this:
<?php $my_query = new WP_Query('category_name=process&posts_per_page=20');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<li><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></li>
<?php endwhile; ?>
Destroys the original refe...
Hi,
I am developing a CMS and I want to have a framework so anyone can plugin for it like the wordpress has.
I come to many solution but they are not that helpful.
Can anyone tell me a good solution...
Thanks
...
I originally asked this question on Super User but was told that it might be better placed here...
I have a running blog and to help me track and write about my runs I've recently bought a Garmin GPS watch. The setup works a treat and I'm able to share links to my runs in my blog such as:
http://connect.garmin.com/activity/23842182
Is...
I am running the latest wordpress version with a program called Zina. I turn an option on to display the sidebar on the Zina page, but instead of on the right it shows below the content. Any idea why this might be?
Here is the page: http://www.mixtapejerks.com/wordpress/?page_id=3
Thanks!
MJ
...
// Create post objects
$my_post = array();
$my_post['post_title'] = 'Main Blog Post Title';
$my_post['post_content'] = 'Main Blog Post Content';
$my_post['post_type'] = 'post';
// Insert the post into the database
wp_insert_post($my_post);
How can I make this post sticky via the script?
...
I'd like if someone could give me some advice on creating this script, which I will add to the existing plug-in (see code below) script below.
So what I have now (with the script below) is a means to insert a predefined set of defaults into the wordpress site. What I'm wanting to add, is a helper utility, activated by a button or link t...
I need to have page where people can send comments, but it is not blog post, so is it possible to make comments to that page without making a blog posting?
...
I want to create a user defined table in wordpress database.Is it possible?.........how?
thanks
...