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.


  #1  
Old Nov 23, 2010, 02:59 AM
vintario
 
17 posts · Oct 2010
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.
  #2  
Old Nov 25, 2010, 01:46 AM
vintario
 
17 posts · Oct 2010
So can anyone please help?
  #3  
Old Dec 2, 2010, 03:56 PM
vintario
 
17 posts · Oct 2010
Please, anyone?
Atleast tell me if it's not doable or nobody just wants to help. It's not like I have anywhere to ask for help.
If I won't be able to accomplish this I will need to redo all my posts..
  #4  
Old Dec 2, 2010, 08:30 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You might be able to do it by adding some code at ato->Style and Edit CENTER Area-> The LOOP. What I'd do is goo look in the actual theme code to see how the excerpt is built, then try and duplicate that code in a php if statement in 'The LOOP' when the conditions you want are met.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 3, 2010, 04:02 AM
vintario
 
17 posts · Oct 2010
Thank you for at least trying to help me, but I'm total beginner at this, so I wasn't able to figure it out. Yeah, I found that code that generates excerpts, I tried modifying it and adding in The Loop, but most of the time I just made all posts disappear, other times it added all other posts that were on the page under the post that I'm modifying into that post, so it created one long post..
  #6  
Old Dec 3, 2010, 05:58 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm sure this is doable, but as you see it will take some time and is beyond the scope of the forum. You could look to hire someone with PHP and wordpress knowledge to do it for you if you really need it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



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 05:49 AM.


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