Bible verse of the day

Support Area Forums Kerygma Bible verse of the day

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://cathedralchurch.net/wp
  • Author
    Posts
  • #20503
    Casey Morrell
    Participant

    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…

    #20505
    Bill Robbins
    Moderator

    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.

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose hero-options.php
    3. Replace everything there with this:


      (Be sure to copy the code directly from the support site and not the notification email.)

    4. Save your changes.

    After that you can then enter a shortcode directly into the hero caption. You won’t need the

    #20506
    Casey Morrell
    Participant

    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..

    #20510
    Bill Robbins
    Moderator

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Bible verse of the day’ is closed to new replies.