Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_the_subtitle() not working on latest wordpress version 5.2 (Preview) #42

Open
joelpierre opened this issue May 19, 2019 · 6 comments

Comments

@joelpierre
Copy link

Using get_the_subtitle() is no longer working on wordpress 5.2. It doesn't return anything.

@benhuson
Copy link
Owner

benhuson commented Sep 4, 2019

Please can you provide some information about how the subtitle is implemented in your templates.

Are you able to set the subtitle in the admin? Is it just the display that is not working.

Are you using the block editor or classic editor?

@xzykho
Copy link

xzykho commented Oct 3, 2019

Hello Ben, I'm having the same issues. I have WP 5.2.3 and using the block editor, the subtitle shows on the editor view at the admin panel only. It does not display on page view. Not sure I'm implementing it properly. I'm still using the legacy the_subtitle. I've been to your docs. Not sure how to implement it.

Weird thing it seems the problem only exist on Preview Mode but on Live Page View the subtitle displays.

@benhuson
Copy link
Owner

benhuson commented Oct 3, 2019

@xzykho Just to confirm it should work on published pages, it's just the preview where it is broken?

This relates back to functionality that was introduced to store revision subtitles - there is already and issue pending for fixing the subtitle not showing on Previews #41

@joelpierre
Copy link
Author

Sorry I went cold on this.

I am using the classic editor (because it is the best :-)) and using <?php get_the_subtitle() ?> in the template.

@xzykho
Copy link

xzykho commented Oct 3, 2019

@xzykho Just to confirm it should work on published pages, it's just the preview where it is broken?

This relates back to functionality that was introduced to store revision subtitles - there is already and issue pending for fixing the subtitle not showing on Previews #41

Hi Ben, Yeah, if the page is published and I view it the Subtitle is displayed. But if I go back to edit mode and preview the changes the Subtitle doesn't show.

Thank you for getting back to me and letting me know about the pending fix.

@benhuson
Copy link
Owner

If it is just in preview that this isn't working, I think it relates to existing issue #41

@benhuson benhuson changed the title get_the_subtitle() not working on latest wordpress version 5.2 get_the_subtitle() not working on latest wordpress version 5.2 (Preview) Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants