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

how can i display children of my parent page in one of the children page (wordpress)

if you want to display all child pages of parent page in the child page then you can try this. it will display child page title and its links. $current_page_id = get_the_id(); $parent_id = wp_get_post_parent_id( $current_page_id ); if(!empty($parent_id)) { $child_args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => -1, ‘post_parent’ => $parent_id, ‘post_status’ => ‘publish’, ‘order’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)