Jump to content
Sign in to follow this  

Help with Conditional tag

Recommended Posts


Still getting my feet wet in PHP and functions. I'm attempting to replace the "continue reading" link on post excerpts with "Go to event" - but only for posts that are in a certain category. Same style and everything, just want it to say "Go to event" insead of "Continue Reading". Here's where I'm at: - I copied over template.postloop.php into the base theme. - Found the part starting at line 77 that begins the continue reading link ` if ( in_category( 'recent-events' )) { } ` Should I create a new function modeling it off get_continue_reading_link? Easier way? Where should I add in the elseif? Thanks for the help!

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