Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter majkelos

    (@majkelos)

    Hi,

    thank you for this, it was actually one of the plug-in – My Custom Widgets, where i had an widget with small querry on the side. After disabling this one all went back to normal.

    I managed to fix original issues with this chunk of code:

    <?php
    $args = array( 'numberposts' => 10, 'post_status'=>"publish",'post_type'=>"post",'orderby'=>"post_date", 'cat'=>8, 'post__in'  => get_option( 'sticky_posts' ));
    $postslist = get_posts( $args );
    foreach ($postslist as $post) : setup_postdata($post); ?>
    <div class="sticky-header">
    <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
    <?php get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'image_class' => 'featured' ) ); ?>
    </div>
    <div class="entry-summary">
    <p><?php the_content(); ?></p>
    </div>
    <?php endforeach; ?>

    basically using get_posts() instead of query_posts()

    keesiemeijer thank you again

    Thread Starter majkelos

    (@majkelos)

    Hi,

    http://pastebin.com/xYHarNQa

    I really have no idea what’s going on. Here what i have attached are 2 loops 1st is querrying only for sticky post. –> and this one is returning only one sticky post that i have published with content, and below that there is HOME.

    Second is supposed to show all other posts, in a category (excluding sticky), in the version i posted there is no the_content(); in there and this option is showing just titles of the all posts i want.

    But as soon as i put <?php the_content(); ?> (in line 82), in there what i get is the one title, one content, and below that there is an HOME title and that’s all.

    I’m trying now to solve this one using get_posts() maybe this will do, but i’m not sure how will it end up.

    Thank you

    Thread Starter majkelos

    (@majkelos)

    Hi,
    thanks for your reply – it is actually like you said.
    But still showing only one post with content, and then HOME title and nothing more

Viewing 3 replies - 1 through 3 (of 3 total)