how to? Given category always show the complete post instead of the excerpt?
Hi, guys!
Is there a way to make the posts from a given category always show the complete post instead of the excerpt, while all others categories showing the excerpt? I want to do this in the home and all other pages, not only in the given category page. Thanks! |
Ok, an update.
I know I have to insert an 'if' statement into the loop, that will check if the post is from the given category. My question is: should I edit the index.php (and exactly where I could put this) or I can use this if into the loop options in ATO? Thanks! |
you will want to edit bfa_postparts.php and look at the 'function bfa_post_bodycopy'
|
I am testing the following in the loop section in Atahualpa options:
Just below the line PHP Code:
PHP Code:
PHP Code:
PHP Code:
Anything wrong with this approach? |
Hi,
Did this code work in the end? I am attempting to due the same thing. I'm basically treating a "news" category page as separate to the rest of the blog, and I want to show full posts on this category page while the rest of the blog displays excerpts. I had a look at the code above and as best I can tell bfa_post_parts.php is perhaps different in newer versions of Atahualpa. I could really use help to set up showing full posts in this category. I'm a bit of a noob/newb, I don't know much about php and I don't even have FTP access for the site I'm working on, so if I cause a parse error I'm in real trouble. Thanks. |
Another option to editing the theme files is to use the List Category Posts plugin which uses a shortcode with attributes you can set to show a particular category and full posts or excerpts or just about anything you want.
|
Quote:
|
Larry,
I don't understand how List Category Posts might work for me in this case. I too am trying to make The "category" page for a given category display the entire post filed under that category. (I am using categories as navigation and there is only one post associated with this category) But, when I have used List Category Posts before on a different site, it has been on a proper PAGE and I used it to pull in posts in a given category. I can't imagine how it is applicable here. So I want to do what the OP wants to do, use excerpts on most category pages and if there is only one post in a given category, have that show up as a full post on the category page. TIA |
I know of no way to have category pages with only one post shoe the complete post. That would require some programing. I read this post fast and didn't clearly understand the need.
|
Th code from post 4 would have to be added to index.php
|
All times are GMT -6. The time now is 04:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.