Support » Plugins » query_posts problem!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    possibly some problems such as unmatched opening and closing html tags within the content of the posts.

    please post a link to your site to illustrate the problem.

    thank you for the quick reply!

    but i’m working on a local server. can i paste the output html or the php file itself somewhere?

    Michael

    (@alchymyth)

    Forum Moderator

    can i paste the output html or the php file itself somewhere?

    you can paste any code using the http://pastebin.com/
    instructions are in here: http://codex.wordpress.org/Forum_Welcome#Posting_Code

    OK so heres the entire category page pastebin link

    I solved the issue by running a WP_Query instead and adding classes to hook-up in css later:

    <?php
    $featuredPosts = new WP_Query();
    $featuredPosts->query(‘showposts=4&cat=13’);
    while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?>
    <span class=”post”>
    <h2>“><?php the_title(); ?></h2>
    <div class=”post_content”>
    <?php the_content(); ?>
    </div>
    </span><!–End post–>
    <?php endwhile; ?>

    thanks anyway!

    Michael

    (@alchymyth)

    Forum Moderator

    as the problem is not solved – (you wouldn’t be asking in a differnt forum, otherwise) some more questions:

    – have you tried to check each single post if they show properly?

    – can you copy the rendered html code of the output of that code from your local browser and paste it into a pastebin?

    – can you possibly provide a screenshot of the problem?

    there is nothing in the code of the template which would suggest that some posts should show different, and there should be problems with the layout.

    sadly that is true. i was sure i cracked it….

    how can i copy the html?

    i’m working with chrome

    well heres the screenshot: http://s1102.photobucket.com/albums/g451/nesta303/?action=view&current=screenshot.jpg

    i thought i solved it by using WP_query:

    http://pastebin.com/4gYw8RJu

    thanks,

    Isaac

    Michael

    (@alchymyth)

    Forum Moderator

    how can i copy the html?

    i’m working with chrome

    – right-click: ‘view page source’

    have you checked the single posts?
    are they all displaying properly?

    here’s the html

    http://pastebin.com/pkXtQx2A

    i havent checked the singles yet

    Michael

    (@alchymyth)

    Forum Moderator

    there is a variation in the posts how the css class is used in the paragraphs, (<p class="post-content">) and also how the image is within the first paragraph with or without text.

    this could mean that your problem might be partially caused by formatting, which is impossible to check for anybody here in the forum without a live link to the problem site.

    definitively not caused by the code of the query.

    thank you for the quick reply!

    ok so i’m moving the site to a live server.

    ok here is the live site:

    http://diet.isaacfeldmandesign.com/?cat=3

    somehow, the posts aren’t showing at all.
    🙁

    Michael

    (@alchymyth)

    Forum Moderator

    unfortunately this is a fundamental formatting problem;
    complicated with the fact that the posts’ structure differs, some of the images are together in one paragraph with some text, and that one of the texts continues with a linebreak …etc
    further complicated by the use of the same css class .post_content for the div and the paragraph;

    consider to re-work the html and css fot that template.

    as I see this not as WordPress issue, personally, my replies end here.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘query_posts problem!’ is closed to new replies.