How can I change the title of the Home link in the navigation bar?

wp_nav_menu with no arguments and no menus defined in the back end at wp-admin->Appearance->Menus (which sounds like the circumstance you describe) just lists your pages, plus a “Home” link. That is done by calling wp_page_menu, the default callback for wp_nav_menu, which means that under those conditions you can alter that text by hooking to wp_page_menu_args … Read more

How to get all post titles starting with numbers and symbols?

Hook into the posts_where filter and add your condition to the query: add_filter(‘posts_where’, function($where){ global $wpdb; return “{$where} AND {$wpdb->posts}.post_title REGEXP ‘^[0-9\$\@\!\?\%]'”; // add other symbols in the regex above ^ }); Then do your query: $my_query = new WP_Query(…); You may want to remove the filter after you get the results (make it a … Read more

[Plugin leenk.me]modify get_the_title

“I want to modify the get_the_title function” — Do you mean you want to modify WordPress’s get_the_title(), or simply modify what it returns? If the former, I must strongly advise against it. You shouldn’t hack core files in WordPress. If you want to modify what it returns, use the the_title filter.

Show title when inserting single images

I am assuming you are using the WordPress editor tools to insert your single images. If so, you can just write title=”your title” into the markup or go to the visual tab, click the image, hit edit (the photograph icon), and enter a title. I don’t see a way to auto-fill the title, though there … Read more