Forum Replies Created
-
AuthorPosts
-
January 12, 2015 at 3:50 am in reply to: genesis_title showing outside tag with Simple Hooks #137144
mswas
MemberThanks Carlo, that is a much simpler bit of code than what I had found!
January 10, 2015 at 5:23 am in reply to: genesis_title showing outside tag with Simple Hooks #136838mswas
MemberCarlo, I was writing my reply when you posted... Thanks for your suggestion. But this will not work for me to require the author to change on the post editing screen. We have over 170 bloggers now and it is very hard to get them every single one of them to do something consistently. I want this automated based on other custom fields that they are required to enter.
You can see my confusion based on what it says in the SH dashboard. I could have sworn that there was a field to append/replace title in previous versions of SH but maybe I was mistaken.
(edit - will try your other code tho.)
January 10, 2015 at 5:16 am in reply to: genesis_title showing outside tag with Simple Hooks #136835mswas
MemberThanks Tom, this occurs with PHP and plain text. This is what I currently have in the genesis_title Hook field. with "Execute PHP on this hook?" checked.
| <?php echo get_field('book_title') . ' by ' . get_field('book_author') ; ?> Book ReviewSee that it is showing just outside </title> here: http://cannonballread.com/2015/01/afterworlds-if-schrodinger-ever-wrote-a-book/
<title>Afterworlds; If Schrödinger ever wrote a book</title>| Afterworlds by Scott Westerfeld Book Review
-
AuthorPosts