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

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

Add addtional page parameter before loading the page

Set a variable $product_view=isset($_GET[‘product_view’]) ? $_GET[‘product_view’] : ‘grid’; Now, how to keep it like this with pagination URL’s. echo paginate_links(array( ‘base’ => add_query_arg(‘product_view’, $product_view), ‘format’ => ”, ‘prev_text’ => __(‘«’), ‘next_text’ => __(‘»’), ‘total’ => ceil($total / $items_per_page), ‘current’ => $page, ‘add_args’ => array( ‘category’ => ‘fruit’, ‘color’ => ‘red’ ) )); I hope this … Read more

Displaying all pages which comes under a category id

Use this code , <?php $args = array( ‘posts_per_page’ => -1, ‘offset’ => 1, ‘category’ => 4, ‘numberposts’ => -1 ); $pages = get_pages($args); $i = 1; foreach ($pages as $page) { if ($i == 1) { ?> <div class=”carousel-item active” style=”background-image: url(‘<?php echo get_bloginfo(‘template_url’); ?>/img/intro-carousel/1.jpg’);”> <div class=”carousel-container”> <div class=”carousel-content”> <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($page->ID), ‘optional-size’); … Read more