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’).
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’).
That is pretty straight forward, you use the login_redirect filter hook which is there for exactly this case. You would add something like this to your functions.php file: function home_login_redirect( $redirect ){ // Check if user is administrator; you probably want to redirect // him to the dashboard, don’t you? if ( current_user_can( ‘administrator’ ) … Read more
This really isn’t a WordPress issue. That said, the key error is “open_basedir restriction in effect.” If you’re running your own VPS, you need to learn to configure it. open_basedir restrictions keep scripts in one directory from being able to affect scripts in another directory, which is an important security feature. If one accounts gets … Read more
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’ );
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
Consider this snippet here to accomplish your task. If you add it to your functions.php file, the Open Graph tags will be populated automatically as part of the wp_head action.
Heavily edited from the above link How to Harden your Word Press if you’re a server admin Bear in mind I am not an expert on Word Press nor even a user of it: you will probably not be able to automatically self update word press (which is by default a massive security issue since … Read more
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
You should be able to use any HTML entities for the titles. I’ve put ™ in menus before. You can also try the code: ™
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