Too few arguments for printf() [closed]

printf( __( ‘%1$s – %2$s’, ‘erudite’ ), the_date( ”, ”, ”, true ) ) expects two strings; you’ve only offered one (the_date()). If you want to use two strings, you have to give it two strings. If you want printf() to use the_time() and $previousday, you need to tell it so: printf( __( ‘%1$s – … Read more

Arrange Category post manually when displayed

So, if I can clearly get you, you want to sort the order of your posts. I found the following plugin best fit for the purpose: Post Type Order – WordPress Plugin After installing the plugin, you will get a new submenu under “Posts” (and under all other Custom Post Types). You can order the … Read more

What is wrong with this pagination code?

The main query runs before the template is loaded, and WordPress decides what template to load based on the results of that query. You say your default posts_per_page is set to 200, and there are 180 posts in that category, so as far as WordPress knows, there is no page 2. Your custom query that … Read more

Replace Menu Item with Logged in username

you can do it with jQuery, but you’ll need to find that menu item’s class or ID. Here’s an example: <?php global $display_name; get_currentuserinfo(); ?> <script> jQuery(document).ready(function($) { $(‘.your-class a’).text(‘<?php echo $display_name;?>’); }); </script>