Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

single_post_title() not showing subtitle outside of the loop #54

Closed
robertdevore opened this issue Aug 3, 2015 · 3 comments
Closed

Comments

@robertdevore
Copy link

I noticed there was an issue in 2014 about this, but I've been testing this plugin out and have the single_post_title(); code in my theme's header.php file, but it's not outputting the subtitle.

When viewing the page source, it also looks like it's not effecting the title at all. The title output is just the plain WordPress post title output.

I tested the single_post_title(); output within the loop, and that works fine.

Not sure if any of that info that helps, but figured I'd let you know.

@robertdevore robertdevore changed the title single_post_title() not showing subtitle single_post_title() not showing subtitle outside of the loop Aug 3, 2015
@philiparthurmoore
Copy link
Member

Thanks for letting me know. Subtitles will only show if they are inside the Loop. If you'd like to display them outside the loop then you might want to look into using the_subtitle or get_the_subtitle (here). Let me know how that goes for you.

@robertdevore
Copy link
Author

Well, shit, that worked perfectly. Thanks again for an awesome plugin!

@philiparthurmoore
Copy link
Member

Fantastic! Thanks for letting me know. Please leave me a review if you have
a moment. Cheers.
On Aug 4, 2015 7:03 AM, "Devio Digital" notifications@github.com wrote:

Closed #54 #54.


Reply to this email directly or view it on GitHub
#54 (comment)
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants