• Resolved gibby75

    (@gibby75)


    I want to automatically add a shortcode to the end of every post. I have instructions on how to apply the shortcode via the “echo do_shortcode” command. The plugin developer provided instructions for editing the while loop inside the single.php file. I’m using the mission news child theme and noted that neither the mission-news or mission-news-child theme folders contain the single.php file (or at least I can’t find it).

    The website provided shows the instructions given by the developer.

    My question is, can you tell me where I can find the mission news single.php file? Or is there an equivalent file location where I can run the do_shortcode command and accomplish the same goal?

    Thank you

    website

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hey there,

    The file you’re looking for is content.php. You can copy that from Mission News into your child theme and then add the shortcode after the the_content() function.

    Thread Starter gibby75

    (@gibby75)

    Ben, thank you for the reply. I located the function and added the do_shortcode. It works like charm!

    Thanks again for your help.

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome! Stay in touch if you need anything else and I’ll be happy to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single.php file’ is closed to new replies.