Pagination on Custom Post

When you use WP_Query to get post from database, you must have to use next_posts_link() with max_num_pages parameter for our current query. You can do this as below. <?php next_posts_link(‘More &raquo;’, $packages->max_num_pages) ?> Now your code will become this. I have made above changes in following code. <div class=”eight columns”> <ul> <?php $paged = (get_query_var(‘paged’)) … Read more

Posts – display all posts except a post by an ID

Couple of issues here IIRC, exclude should be an array of ID’s as exclude get passed to WP_Query as post_not_in You are defining arguments which you don’t use. You could have simply passed that to get_posts. Rememeber, all parameters in WP_Query is available as is to get_posts as get_posts uses WP_Query You can simply use … Read more

Parsing Menu Items and Blog Posts

I’m sure what you’re asking can be done, but there’s a far simpler, significantly easier solution, just register each menu multiple times for each language, and show different menus for different languages. This way you don’t need to figure out how to filter out menu items depending on GET variables, and your pages become more … Read more

Disable auto-save and post revisions from inside a theme or plugin

You mentioned: Is there a way, to do that from within a plugin or a themes functions.php? You may want to try the following code. Just place it inside your theme’s functions.php file. Using it, you do NOT have to alter the wp-config.php file. define(‘WP_POST_REVISIONS’, false); function disable_autosave() { wp_deregister_script(‘autosave’); } add_action(‘wp_print_scripts’, ‘disable_autosave’);