Creating a Horizontal menu

In my opinion, this is a CSS-only question. You have to provide the <li> elements in your menu with the CSS style display: inline; (or ‘inline-block’).

Show the most recent post for an author on the author page

Basic debugging… $current_author = get_query_var(‘author’); var_dump($current_author); … would reveal that $current_author is a string, not an object. The problem is that you are trying to use the string as an object in the query. get_posts( ‘author=”.$current_author->id.”&posts_per_page=1&order=DESC&orderby=post_date’ ); Change $current_author->id to $current_author and the query works. $author_posts = get_posts( ‘author=”.$current_author.”&posts_per_page=1&order=DESC&orderby=post_date’ );

Dave’s WordPress Live Search only works when logged in as admin

That plugin uses the AJAX API as it should… http://frome.fm/wp-admin/admin-ajax.php?s=ho&action=dwls_search … but when not logged in that request fails (from HttpFox)… 07:23:58.923 0.155 470 0 GET (Aborted) NS_BINDING_ABORTED http://frome.fm/wp-admin/admin-ajax.php?s=ho&action=dwls_search Since you say that the plugin works when you are logged in the Ajax callback is likely hooked to wp_ajax_* but not wp_ajax_nopriv_* The latter is … Read more

jQuery to work on WP custom page template

Probably there are a lot of questions/answers here in wpse that explain this kind of issues and the use of jquery and other js in wordpress. However, In wordpress never put javascripts in template files. Javascript should be in separate .js files. The javascript should be putted in the templates using wp_register_script / wp_enqueue_script functions … Read more

Custom post type / Filter by letter

Assuming that you have a query result, ordered by your titles ASC and wrapped each “block” in a div with the id=”A”, etc.: There’s a PHP function to fill arrays: $aToZ = range( ‘A’, ‘Z’ ); Then you can loop through it: echo ‘<ul class=”aToZ-list”>’; foreach ( $aToZ as $char ) echo “<li class=”aToZ-el”><a href=”#{$char}” … Read more