Archive: Lists itself

As @Milo told me in the comments, the problem lies in the fact, that the archive template shouldn’t be applied to a page, but left untouched. That way WordPress will still know which template to use for displaying an archive but you can’t access the template itself, which means it will not display itself in … Read more

Recovering a page from the drafts

You can easily recover a page from the drafts. follow the steps below: See a link ” Trash” on the top of pages listing section. Click on that link which will take you to the section where all the trashed pages are listed. Select the page(which you want to publish) using the checkboxes against them. … Read more

Child and Parent Pages list of sub pages

You need to work out what page level you are on first, so that you know the correct ID to pass to the child_of argument of wp_list_pages. Give this a try: global $post; $page_level = 0; $post_parent = null; // Work out what page level we’re on if($post->post_parent > 0) { $post_parent = get_post($post->post_parent); $page_level … Read more

Assign Parent Page – Now 404 Error

PLUGIN 1: After looking into this site further, I noticed I have a plugin that has created a section in the sidebar called “Products”. Within the “Products” section is a category labeled “Locations”. This is creating the /locations/part of the URL. There are several pages like the example www.example/locations/city-state. This is for a filter based … Read more

How to add custom php file to right sidebar?

There are three ways to do that: Create a widget (Recommended) Here is official documentation. You can include your php file within widget() function of your widget class. Create and place a shortcode in exiting wordpress default text widget. Here is sample code //Place this code in theme’s functions.php add_shortcode(‘ContactForm’, ‘cf_shortcode’); function cf_shortcode($att) { ob_start(); … Read more

How to show metabox on page if it is using a template

Use the page-specific meta box hook & accept the $post object that’s passed to it – then you can check if it currently has a page template of sky-template.php. add_action( ‘add_meta_boxes_page’, function ( $post ) { if ( $post->_wp_page_template === ‘sky-template.php’ ) { add_meta_box( ‘sky_page_excerpt’, ‘SkyScraper Page Excerpt and Links’, ‘sky_page_excerpts’, ‘page’, ‘advanced’, ‘high’ ); … Read more

Problem with deleting a “Page”

I’m sorry you’re having trouble with you developer. I recommend unpublishing the page (saving it to draft) rather than deleting it right away. This will allow you to restore the content if any issues arise. No one can say for certain whether removing this page will cause issues or not since no one can see … Read more