Blocked posts in network tab
Blocked posts in network tab
Blocked posts in network tab
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
First, really stupid question: Do you save your new menu after making the changes? Sometimes it’s the little things that mess everything up. Aside from that, it might be a theme problem. Change to one of WordPress default themes (Twenty XYZ series) and see if the problem persists.
Actually, it was a theme, issue, I just changed the theme to something more simple and it is now working. Hope this helps someone!
You could use these plugins: https://wordpress.org/plugins/custom-sidebars/ https://jetpack.com/support/widget-visibility/ Both allow you to control which widgets/sidebars show up where.
İ found a solution: $posts = get_queried_object(); echo $posts->count;
If you write code… Step 1. Find and edit every post you want to assign to a page and give them all either: 1) The same Category, 2) The same Tag or 3) The same post metadata Step 2. On that page’s template or in a custom block or widget write a WP_Query that gets … Read more
You might get away with shortcodes: add_shortcode(‘title’, function ($atts, $content = null) { $atts = shortcode_atts([ ‘id’ => null, ], $atts); $title=””; if (!empty($atts[‘id’])) { $title = get_the_title($atts[‘id’]); } return $title; }); add_shortcode(‘content’, function ($atts, $content = null) { $atts = shortcode_atts([ ‘id’ => null, ], $atts); $content=””; if (!empty($atts[‘id’])) { $post = get_post($atts[‘id’]); // … Read more
My English homepage will not update
Your can use post_parent parameter for your query. Ref: https://codex.wordpress.org/Class_Reference/WP_Query This will change your query to: $args = array( ‘post_type’ => ‘b_books’, ‘order’ => ‘ASC’, ‘orderby’ => ‘date’, ‘posts_per_page’ => 10, ‘post_parent’ => 0 ); genesis_custom_loop( $args );