Bible verse of the day
URL to the page in question:
http://cathedralchurch.net/wp
-
trying to add <?php echo do_shortcode(“[bible-verse-display]”); ?> to the hero caption but it doesn’t work..
Its a bible verse of the day plugin…
Good question. You can do that with a bit of editing. WordPress doesn’t allow shortcodes to be run inside of a “custom field” which is what the hero caption and title are. Here’s what you’d need to change in order for that to work.
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose hero-options.php
- Replace everything there with this:
(Be sure to copy the code directly from the support site and not the notification email.)
- Save your changes.
After that you can then enter a shortcode directly into the hero caption. You won’t need the
I copy and pasted the <?php echo do_shortcode(“[bible-verse-display]”); ?> into the hero caption and it didn’t do it.. I went back to edit it and it wasn’t there like i didn’t save and tried it again and it did the same thing..
Gotcha. Instead of this
<?php echo do_shortcode("[bible-verse-display]"); ?>
which you would use in an actual template file, you’ll want to just use the shortcode part which would be this:
[bible-verse-display]
See how that goes.
- The topic ‘Bible verse of the day’ is closed to new replies.