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

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

Automatically generate pages from SQL

Use a shell script and WP-CLI in your SSH console. Your shell script has to fetch each element of your table and launch the function of WP-CLI that creates a post in WordPress. You can even provide a sort of template in the call of the function. WP-CLI is a useful tool, but you can … Read more

How to rewrite a page url

You can change page URL from the page editor. If you want to make changes for all the pages. You can go to settings -> general settings -> permalink and change it to your desired value. To change for a single page, modify your .htaccess : <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f … Read more

Using page-something.php as static front page

Use ‘front-page.php’ for your template. You can read more about it at https://codex.wordpress.org/Creating_a_Static_Front_Page Or create a page template that you set in the editor. This will allow you to set it on any page and you’re not tied to the ID. https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/ <?php /* Template Name: Example Template */ ?>

Dynamic page with comments

You probably can hack comments in somehow, but don’t. Create a custom post type for your musicians using register_post_type() and including “comments” support. You can then create post type templates to customize the display: archive-{post_type}.php — for archives single-{post_type}.php — and for single posts https://codex.wordpress.org/Post_Type_Templates Comments should now work properly without your having to hack … Read more