Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] How to control readmore link visibiltiy


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 13, 2012, 05:24 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Front page contains readmore link in footer for each post on front page.
But I don't want to see such link if post is fully displayed here already.
How can I hide readmore link in case when post doesn't contain <more> link?
Thanks for help!
  #2  
Old Nov 13, 2012, 06:08 AM
juggledad's Avatar
juggledad
 
21,684 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
export your settings and attach them to a reply
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 13, 2012, 11:40 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Quote:
Originally Posted by juggledad
export your settings and attach them to a reply
juggledad, they are here
Attached Files
File Type: txt montezuma_arteny_settings.txt (71.5 KB, 138 views)
  #4  
Old Nov 13, 2012, 02:18 PM
juggledad's Avatar
juggledad
 
21,684 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
by default the theme displays the posts as excerpts. If you don't want this you have to modify the postformat.php virtual template to change the line
HTML Code:
		<?php bfa_excerpt( 55, ' ...' ); ?>
to use the_content() instead - you can check the php you can use by pressing the 'Limited PHP code' tab at teh top right of the screen
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Nov 14, 2012, 05:24 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
juggledad, i feel there is a some misunderstanding according my question.
as for bfa_excerpt - i am using it's own realization here (which uses get_the_content() in turn).
The question is about following part in post-footer (below bfa_excerpt):

<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>

I don't want to show this link at all (it is default link "read more ->" shown for each post) in case when whole post already included in shown post text - it happens when post is enough short in itself.
So, what I need here - is to add condition to check is post content in itself contains 'more' link or not. If not, don't show post-readmore link. The problem is that I don't know how to get post content here to add it into a condition (something like $post->post_content?).
Anybody help please?
  #6  
Old Nov 14, 2012, 11:13 AM
juggledad's Avatar
juggledad
 
21,684 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
That code is in the postformat.php virtual template. Unfortunately there doesn't seem to currently be any way to have this show conditionally.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #7  
Old Nov 14, 2012, 03:24 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Is it not possible to set some global variable inside bfa_excerpt() and then read (check) it in postformat.php after bfa_excerpt call?
  #8  
Old Nov 14, 2012, 05:40 PM
juggledad's Avatar
juggledad
 
21,684 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Any thing is possible, give it a try and let us know how it works out
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #9  
Old Dec 27, 2012, 01:39 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Quote:
Originally Posted by juggledad
That code is in the postformat.php virtual template. Unfortunately there doesn't seem to currently be any way to have this show conditionally.
But how user can recognize is article cut or not really (when read more if always visible)?
  #10  
Old Jan 26, 2013, 03:11 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Actually second parameter of bfa_excerpt says when there is a continuation. Just I used own realization of bfa_excerpt (don't like break formatting) and wanted to recognize it from virtual template (without success). But content() function which i am using in my realization also has a parameter "read more", I missed it before. I can live which such solution.
So, I'll solve the thread.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control width glennvogelsang Header configuration & styling 1 Mar 7, 2011 03:41 PM
[SOLVED] Control Link Colors and Decoration in Content Only OldMan1 Atahualpa 3 Wordpress theme 4 Feb 1, 2011 06:53 AM
3.4.9 and excerpts + readmore DesignFlute Excerpts, Read more, Pagination 2 May 12, 2010 12:36 PM
h1 h2 h3 etc sizing control caseyfern Header configuration & styling 15 Feb 15, 2010 04:45 AM


All times are GMT -6. The time now is 12:59 PM.


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