• Resolved eber219

    (@eber219)


    Hello,

    I was looking for a way to insert the shortcode on all posts, without the use of some other plugin to auto insert codes?

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    This is something that you should do from within your theme. The exact way to do this is fully dependent on your theme, so I cannot really help with this other than providing you with the following information.

    1. your theme will have a file called single.php, this is the template file for posts that you should edit. Some themes may use “template parts” which you will need to figure out on your own.
    2. The function that loads the content of your posts is called the_content so look for that. It is after this that you will want to run the shortcode
    3. The php function to run shortcodes is called do_shortcode. An example would be do_shortcode('[HDquiz quiz = "999"]');
    Thread Starter eber219

    (@eber219)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to insert a quiz on all posts?’ is closed to new replies.