Jump to content
Sign in to follow this  
dgroberg

Show full text of sticky posts

Recommended Posts

timlinson

I would filter the_excerpt with something like this in functions.php: ` function dan_sticky_filter($content) { if(is_sticky()) $content = the_content(); return $content; } add_filter('the_excerpt', 'dan_sticky_filter'); `

Share this post


Link to post
Share on other sites
dgroberg

I'm sorry - can you walk me through this a little more? Are you referring to the functions.php in the theme file or in the Wordpress includes? Would I put this in place of something else, or in addition to the existing code - and where exactly does it go in the functions.php file? Thanks! -Dan

Share this post


Link to post
Share on other sites
Kate

Hey Dan, He means the functions.php in the theme files. And, you can put it anywhere in there.

Share this post


Link to post
Share on other sites
dgroberg

Oh I do have one more question... How can I hide the "Continue reading..." link on those sticky posts (since the whole content is shown, it isn't necessary to have that link anymore). THANKS! -Dan

Share this post


Link to post
Share on other sites
kastelic

Put this is Custom Code -> Custom CSS:

.sticky .continuereading {display:none}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×