• Hello,

    The plugin i am referring to can be found at
    website

    and the plugin here
    plugin

    I really love this plugin, it works exactly as i wanted it to. it puts all latest posts from each category on the main page

    but there is one very small problem, I want my main page to display the entire posts with the proper formats. but the format does not seem to follow the template, they crumple up and lose all the format

    I may not have explained it very well… so here’s my website http://www.sheeply.com
    the 1st post is generated by the plugin, the second post is the original post. Is there anything i can edit in the script so that it adds the < p> and other formats into the plugin-generated posts so that it looks like the second (the original) post?

    I am not a scripting guru, please tell me how i can edit the script in simple terms if possible

    Thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter svnelvn

    (@svnelvn)

    can somebody help me out please? i’ve been trying to figure this out for a week, but my inability to read codes isn’t helping…

    Yes, they crumple up. It doesn’t read the <p> tags correctly. I think this is not on the plugin because even after you save your post, the <p> tags are already scrambled.

    If you’re not afraid to get your hands dirty with a little bit of PHP, this can be done with the following slice of code:

    <?php
    query_posts('cat=' .$catNumber. '&showposts=1');
    while (have_posts()) : the_post();
    ?>
    
    // Use template tags to Do Stuff.
    
    <?php endwhile; ?>

    That the most recent post from category number $catNumber.

    Thread Starter svnelvn

    (@svnelvn)

    thanks theicono for the info
    but can you also let me know where i put that code to fix the problem please?
    do i put it in the index.php or the plugin?

    Thanks

    I have a similar problem. But mine is not caused by the plugin… everything is saved without the proper paragraph tags <p></p>. I checked if from the database and everything was just in a single line (no <p> tags at all).

    I tried writing a new post using the CODE mode. I made two-paragraph post (of course using the <p> tags) and published it without a glitch… it worked perfect.

    However, after I updated the same, the <p> tags were then neglected by the ‘edit’ box after saving.

    I think the problem is in the posting/writing section. I am new with WP, but i think this issue has something to do with their WYSIYG input box.

    I hope this will give some lead to the cause of this problem…

    If you’re not afraid to get your hands dirty with a little bit of PHP, this can be done with the following slice of code:

    <?php
    query_posts(‘cat=’ .$catNumber. ‘&showposts=1’);
    while (have_posts()) : the_post();
    ?>

    // Use template tags to Do Stuff.

    <?php endwhile; ?>

    That the most recent post from category number $catNumber.

    with this code it displays the latest post of one category.
    how can we apply for this to show the latest post per category

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

The topic ‘Latest Post from each Category plugin help’ is closed to new replies.