Customise the_title in admin area

I’d leave the public-facing titles (the_title()) alone so you don’t have to mess with filtering things if you change plugins or themes. Adding postmeta is not a big deal, and it’s not hard to maintain/sustain. It also will not get removed/overwritten with updates. The biggest benefit here is that if you forget to add a … Read more

Using external DB within wordpress

1) If all output will happen in that one template, I don’t see why you can’t do everything in the template. How it’s organized is really up to you. 2) If the table is in the WordPress database, it certainly simplifies things, you won’t have to create a connection to another database. 3) It’s up … Read more

How to use wp_dropdown_pages or wp_list_pages to accomplish a menu like this?

Here’s an easy way to generate a dropdown menu from your blog pages using the WordPress wp_dropdown_pages() function. Adding a bit of javascript you can send the user to the page when they select it <section id=”pageselect”> <span> <?php wp_dropdown_pages(‘show_option_none=Explore…’); ?> </span> <script type=”text/javascript”><!– var selectmenu = document.getElementById(“page_id”); function onPageChange() { if ( selectmenu.options[selectmenu.selectedIndex].value > … Read more

My page title turns into a h2 tag – What to do?

You need to alter the template files under the theme folder. In the folder template-parts there is content-page.php that renders the page (well, at least the part with the header) and content-single.php that has the single post’s title part. Just change the <h2> and </h2> tags to be <h1> and </h1> respectively on the <?php … Read more

Remove and change pages label

To change Number of items per page in Screen Options, add this code to functions.php of your theme: function wpse_modify_screen_option() { $number_of_items = 10; // change this to desired value $screen = get_current_screen(); if ( $screen->id != ‘edit-page’ ) return; $user_id = get_current_user_id(); if ( $user_id ) { update_user_meta( $user_id, ‘edit_page_per_page’, $number_of_items ); } } … Read more