1st post selected in show-posts shows in page source but not visible on page

  • Unknown's avatar

    I’m zeroing in on a specific type of post to display them in a grid on a single page. All is working correctly in the background. However, in the display of the posts, the first one consistently doesn’t show. I’ve even changed the order-by to see if it was a specific post but, no, no matter which post is the first in line, that’s the one that doesn’t get displayed. I’m blind from looking for something missing or mistyped. Can anyone take a look at the page source and see if you notice what might be causing this?

    You’ll notice the first post on the page is FREE Printable Chakra Chart, but it should be Shamanic Pendulum Kit and that Pendulum kit is the first to show in the code if you look at the page source… just not clear why it’s not first on the visible page. {Note: I’m going to try to include code… not sure how this thread will handle that so excuse me if there’s mess beyond this. Any help is appreciated.

    What shows on the page source that doesn’t show on the page is…


    Shamanic Pendulum Kit
    Everything you need to begin reading chakras. This Chakra Pendulum Kit includes an incredible beech wood European Pendulum, an instruction sheet, and a full color Chakra Chart.
    read more
    </div>
    </div>
    </div>

    The code in funtions.php is…

    // Pull courses
    function pull_shortcode( $atts , $content = null ) {
    extract( shortcode_atts(array(‘type’ => ”), $atts ));
    //$type = “$array(‘$type’, -247)”;
    // echo $type;
    $hideid=247; //the category id to exclude
    $args = array (
    ‘post_type’ => ‘courses’,
    ‘sales_pages_categories’ => $type,
    ‘category__not_in’ => array($hideid),
    ‘posts_per_page’ => ‘100’,
    ‘orderby’ => ‘menu_order’,
    ‘order’ => ‘ASC’,
    );
    $query = new WP_Query( $args );
    rewind_posts();
    if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
    $query->the_post();
    $imagethumb = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>
    “>

    ” style=”background: url() center center no-repeat; width: 100%; height: 100%; display: block; background-size: cover;”>
    ” >

    </div>
    </div> <?php ;
    }
    }
    wp_reset_postdata();
    }
    add_shortcode( ‘show’, ‘pull_shortcode’ );

  • Unknown's avatar

    Forgot to include link to the page…

    Energy Shop

  • Unknown's avatar

    Hi… following up to verify someone has seen my request and see if anyone has any guidance/feedback to offer.

  • Unknown's avatar

    deborahking.com is a wordpress.ORG software install hosted by A2 Hosting
    Name Servers:
    ns104255196124.a2dns.com
    ns104255196125.a2dns.com

    We provide support only for sites hosted on WordPress.COM servers. You are posting to the wrong support forum. Know that WordPress.COM and WordPress.ORG are completely separate and you can read the differences here http://en.support.wordpress.com/com-vs-org/

    For software issues post to the WordPress.ORG support forums. The wordpress.ORG support forum is at http://wordpress.org/support.

    The wordpress.ORG support forum is at http://wordpress.org/support.
    The wordpress.ORG login link is here https://login.wordpress.org/
    If you do not have an account yet then click Create an account https://login.wordpress.org/register/ and if you have lost an account password click Lost password? https://login.wordpress.org/lostpassword/
    WordPress.org support docs are at https://codex.wordpress.org/Main_Page
    See also https://apps.wordpress.org/support/ for app support.

  • Unknown's avatar

    Got it. Thank you for your response.

  • Unknown's avatar

    You’re welcome and best wishes with your site.

  • The topic ‘1st post selected in show-posts shows in page source but not visible on page’ is closed to new replies.