• hello all,

    I want to put my jetpack subscription code at the end of every post, but I am unable to do it manually as I have 2.000 posts. is there any plugin which can do that? Just like quick adsense for ads.

    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • First, make sure you do modifications in your child theme. Then create a page called owncode.php (or whatever you like it to be) and put your jetpack subscription code in it. Save this page in your child folder. Then find the template of your posts. Usually it is called single.php and at the end of the content (right above the comment template) put <?php include(‘owncode.php’); ?>. Save this page in your child theme. The jetpack subscription code should then show up on all your posts.

    Thread Starter albnaldo

    (@albnaldo)

    Thank you. But can this be done without creating owncode.php? I mean, instead of putting owncode in single.php, I can put directly the jetpack shortcode, right?

    Yes, you can also put directly the jetpack shortcode.

    Thread Starter albnaldo

    (@albnaldo)

    In this case, besides the shortcode, do I have to add <? and ? > ???

    No, you don’t need to.

    Thread Starter albnaldo

    (@albnaldo)

    It didn’t work. On the post was shown only the shortcode itself, not the jetpack email subscription form. Is there any plugin which can do this? Like quick adsense for ads. Or a popup plugin which supports shortcodes?

    Regards

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What do you mean Jetpack shortcode?

    Thread Starter albnaldo

    (@albnaldo)

    By Jetpack shortcode i mean this: “[jetpack_subscription_form]”. This is the shortcode which displays the “email subscription box” (which normally is on the sidebar) wherever you put it. I pasted it on a single article and it worked. I’m wondering if i can do the same with all posts at the same time. If possible even a popup plugin which supports shortcodes.

    [ Please do not bump, that’s not permitted here. ]

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to put codes at the end of post’ is closed to new replies.