$wpdb->get_results breaking page?

For me the problem would be to use a plugin that uses evil() eval() to evaluate string as PHP, in the first place 😉 This part is from the PHP manual: Caution The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have … Read more

Manage content on multiple pages synchronysly?

To use a separate single post template for each category, you will need to add the following function in your functions.php: /** * Define a constant path to our single template folder */ define(SINGLE_PATH, TEMPLATEPATH . ‘/single’); /** * Filter the single_template with our custom function */ add_filter(‘single_template’, ‘my_single_template’); /** * Single template function which … Read more

Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)

Thank you TheDeadMedic, I should have tried this already, but here is the answer: I had the “Slug” Meta-box hidden, using the “remove_meta_box” function because it is annoying, especially for users that aren’t tech-savvy. Unfortunately, WordPress keeps the Permalink “Edit” as if you could edit it, but it is actually necessary for the “Slug” div … Read more

Order by modified date working in POSTS but not PAGES

Check the documentation for the Plugin API/Filter Reference Looks like you need to duplicate your actions and filters for manage_pages_custom_columns/manage_edit-page_columns etc etc. Fair warning: I’ve not vetted this. See below https://codex.wordpress.org/Plugin_API/Filter_Reference/manage_edit-post_type_columns https://codex.wordpress.org/Plugin_API/Action_Reference/manage_pages_custom_column Here’s the resulting code that works: // Custom Functions to add SORT BY MODIFIED to post and page editor. // POSTS // Register … Read more