Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

How to Show Excerpt Only for Specific Post.


 
Prev Previous Post   Next Post Next
  #1  
Old Nov 23, 2010, 02:59 AM
vintario
 
17 posts · Oct 2010
How to Show Excerpt Only for Specific Post.

Hi.

So basically what I want:

I have single post ID XX.
In Ata options I have set to display full posts on Home and Category Pages.
I want to "display excerpt Only for post ID XX on Catergory Page AND Home Page"
or
"display excerpt Only for Category YY on Category Page (<-I have archieved that) AND Home Page"

I use WP 3.0.1 and ATA 3.5.3

___


In the Ata options I have set to show full post on both home and category pages. I still write manual excerpts but I use them for Feeds, that's why they are usually modified and simplified to display correctly on Feeds, that's why I can't turn on excerpts, they will look ugly on Home Page.

I always use "Read More" tag to get preview displayed on Home and Category Pages, but in this case I can't do it because the preview on the Home/Category Page has to be alittle bit different than the beggining of the post itself when reading the full post.

In case maybe there is another solution instead of using excerpts I will explain what I need.

For example, on the Home/Category Page in the preview of the post there is a image that says "Full info inside" and when you open the full post the same picture says "You are reading the full info" (it's just and example, actually i use image-buttons). If I paste the first picture before the "Read More" tag, and another after it, then everything will be good in preview, but when reading the full post It will still show the first image too that was before the tag, making everything stupid.

Since both image have to be in the same place, have the same size and same look, only with different text inside, maybe there is a way to add 'if' sentence like "if it's 'Home Page' || 'Category Page' then show there picture n1, else (when reading this post) show there picture nr.2" ..
It sounds kinda stupid so I doupt that is an option but It's just an idea.

There are 2 options that could work for me.
The first one is:
"display excerpt Only for post ID XX on Catergory Page AND Home Page"
since
Code:
if (is_single('XX'))
will only display excerpt on this Post Page itself (definitely not what I want) I don't know how to make it happen.

The second one is:
"display excerpt Only for Category YY on Category Page AND Home Page"
I was able to get the first part to work using
PHP Code:
<?php if (!is_category('XX')) { bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); }
else {        global 
$bfa_ata$post;
        echo 
'<div class="post-bodycopy clearfix">'
        
the_excerpt(); 
        echo 
'</div>'; }
?>
, but it shows excerpts only when viewing posts on that Category Page and not for the posts in that category on Home Page. And I don't know how to make it work.


I hope there is somekind of solution for this,

Thank you in advance,
A.L.

Last edited by vintario; Nov 24, 2010 at 05:38 AM.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] post-specific header image w/ css insert (page-specific ones work, but not o viewdesigninc Header configuration & styling 10 Oct 1, 2012 04:43 PM
Show Left Inner side bar on specific posts doubleyoud Atahualpa 3 Wordpress theme 1 Aug 27, 2010 09:32 AM
show pictures in excerpt ata 3.4.6 drey Excerpts, Read more, Pagination 11 May 4, 2010 10:47 AM
Tweetmeme widget does not show up when using Manual excerpt buzz628 Sidebars & Widgets 0 Jan 15, 2010 06:40 PM
Show full Excerpt SFGolfer Excerpts, Read more, Pagination 15 Nov 10, 2009 09:33 PM


All times are GMT -6. The time now is 03:19 PM.


Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.