Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #24447
    cybershot
    Participant

    I have been googling the crap out of this for two hours without much luck. Here is what I need

    I have a tabbed content box with three tabs. I want to make three categories in the content box. One category for each tab. That way the user can make a post in wordpress to a specific category and have it automatically show up in the content box under that tab. This content box is on the homepage. I have been able to get the categories to show up, but it shows all of them no matter what category you post in. I want to show the category, title with permalink and the_excerpt() of the post made to that category. I am using this code to prevent the category from showing up in the homepage regualar posting area

    Code:
    if (is_home()) {
    query_posts(“cat=-24,-25,-26”);
    }
    ?>

    got any idea’s. This would make an excellent blog post or tutorial since there does not seem to be an easy to find solution online.

    #55502
    apostrophe
    Participant

    This reply has been reported for inappropriate content.

    How about Simple Pie?

    Pull in your own RSS feed and then filter out what you don’t want.

    Chris has a vid on Simple pie here: http://css-tricks.com/video-screencasts/55-adding-rss-content-with-simplepie/

    And if memory serves he covered using your own feed in this one: http://css-tricks.com/video-screencasts/41-wordpress-as-a-cms/

    #55503
    Rob MacKay
    Participant

    this little explanation helped me a lot..

    http://perishablepress.com/press/2008/0 … wordpress/

    You might have found it already though…

    #55505
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    simple pie won’t work. I am trying to get my category posts to show in one specific area, So that the person that will be doing the updating can just post to that category and it will show in the right spot. Still no luck.

    #55506
    apostrophe
    Participant

    This reply has been reported for inappropriate content.

    Quote:
    simple pie won’t work.

    Why not?
    It shows up where you tell it to.

    #55507
    cybershot
    Participant

    will simple pie split up the categories into 3 different categories and show them in the spot I want them to. Usually rss shows all the posts. I don’t want the entire post to show, I want the title and the_excerpt(). I don’t know if simple pie will do that.

    #55508
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    It would appear that I found the answer to the problem. That is to make your own loop. You can re use the wordpress loop.

    Here is the code I am going with right now

    I made a blog.php in there I made my loop to connect to the blog category

    Code:
    query(‘cat=26’);

    ?>

    have_posts()) : $recentPost->the_post(); ?>

  • <a href="” rel=”bookmark”>
  • <a class="detail" href="”>continue reading
    <?php edit_post_link('Edit', '’, ‘‘); ?>

I am making edits to the code to show the edit post button, view previous and next or older posts. things like that. But I now have three tabs working, with three different categories and they do not interfere with the homepage posting. I also added

Code:

to the homepage loop. so that the posts won’t show up there.

#55509
apostrophe
Participant

This reply has been reported for inappropriate content.

Ok, glad you found what you needed. :)

Seems with Simple Pie you can only get the description and not the excerpt.

#55510
Chris Coyier
Keymaster
Code:




Do that for each of the three categories?

#55512
cybershot
Participant

This reply has been reported for inappropriate content.

I gave it a try and it doesn’t work. The content box that I am showing the category posts in are on the homepage. With the code you put up, it kills the posts in the homepage. With this code, it doesn’t.

#55513
cybershot
Participant

This reply has been reported for inappropriate content.

The only problem I am having now is that I can’t figure out how to get the next and previous buttons working with the code. It errors on the endif.

Viewing 11 posts - 1 through 11 (of 11 total)