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

Making the plugin work in contact page #21

Closed
x1250 opened this issue Jul 13, 2014 · 3 comments
Closed

Making the plugin work in contact page #21

x1250 opened this issue Jul 13, 2014 · 3 comments

Comments

@x1250
Copy link

x1250 commented Jul 13, 2014

Hello, first of all thank you for this great plugin!! It works awesome on pages with "default template" and looks really beautiful if you use the right font.

Here is my problem: I don't seem able to make it work with pages that use the "contact template" I mean, it works OK on the admin part, I can see the new subtitle field and save the subtitle to the database, but then it doesn't show in the frontend.

Maybe I am missing something? What file should I edit and what kind of code should I add? I'm a little lost, thank you any help you can give me,

Bye.

@philiparthurmoore
Copy link
Member

Hi there. I think this is happening because of the specific template file that you're using in your theme. If you had to select a page template to use for your contact page, then please post the code here so that I can verify that the template is coded in such a way that Subtitles cannot interact with it. Thank you.

@x1250
Copy link
Author

x1250 commented Jul 14, 2014

Ok, here is the code of the file contact.php:

http://paste.ofcode.org/YDsJdMk2svEjiRFDXxutHs

Please let me know if you need another file, I will paste it in ofcode too.

Thank you again!

@philiparthurmoore
Copy link
Member

The reason this is happening is because <?php the_title(); ?> is contained outside of your Loop. Subtitles by default only works within the Loop. If you would like to use it in that template file, then I suggest using one of the custom template tags that I've created, for example the_subtitle or get_the_subtitle. You can read more about that here.

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

No branches or pull requests

2 participants