WordPress rewrite question

Here’s an endpoint solution as mentioned in my comment. First, add the endpoint by adding this code to your theme’s functions.php file: function wpa_add_rep_endpoint(){ add_rewrite_endpoint( ‘rep’, EP_ROOT ); } add_action( ‘init’, ‘wpa_add_rep_endpoint’ ); Then visit the Settings > Permalinks page in admin after adding the endpoint to flush the rewrite rules so this endpoint will … Read more

Missing items on page

it was because of the theme was dump. i had installed WooCommerce already but it didnt understand that because the theme also wants to install WooCommerco. So i had to deinstall WooCommerce and let the theme install a really old version of WooCommerce and then upgrade to the current version of WooCommerce.

how to manipulate HTML parameters using PHP conditions

not sure if this is the correct approach Regardless of what the correct approach to adding an active class to the li element might be, adding a new navigation to the administrative backend is, beyond the shadow of a doubt, a very wrong approach in the first place. Rather than doing that, familiarize yourself with … Read more

how to register a second page-template

After a quick look at the structure, I got to say it appears pretty standard. Simply follow the codex article on creating a page template and drop the new file in the theme’s root directory. Done. Any custom template for multiple pages should start like this: <?php /* Template Name: WPSE Template Example */

why is this content-template not showing any of my blog-entries?

With this code: get_template_part(‘content’, ‘page’ ); WordPress will try to load a file called content-page.php and if this file doesn’t exist then it will try to load content.php. Your theme seems to have the file content-page.php, so if you want to load content.php you should use: get_template_part(‘content’); EDIT: You have edited the question and delete … Read more