PHP Code for posts
[resolved] PHP Code shows up when Post is Shared (8 posts)

  1. julie
    Posted 2 years ago #

    I love this plugin -- it was the answer to a big problem I had. However, when I share this on Facebook with Jetpack, Jetpack pulls in the PHP Code as part of the og:description. I do not want to hard code an og:description in the template, as I would like it to be dynamic. Is this something that you can fix or should I contact Jetpack?

    Thanks for the great program! Going to rate it high!


  2. AnnMarieStone8
    Posted 2 years ago #

    Julie, did you get an answer? I have this same issue.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    @AnnMarieStone8: If you require assistance then, as per the Forum Welcome, please post your own topic.

  4. AnnMarieStone8
    Posted 2 years ago #

    Thanks, but considering the first user never received an answer I thought asking them made more sense. Hopefully I will get a response on my new topic. It makes no sense to me that we have the ability to respond to these forums if we are not allowed to ask other users questions.

  5. julie
    Posted 2 years ago #

    @AnnMarie it's fine with me if you ask here! I did not receive an answer and I figured out a solution but I don't recall what it was. I'll look at my pages and see if I can remember what I did. In hindsight I should have posted the answer here.

  6. julie
    Posted 2 years ago #

    Oh now I remember -- I didn't use Jetpack for sharing. Instead I used another plugin for the other social sites and my own code for Facebook.

  7. The.Missing.Code
    Plugin Author

    Posted 2 years ago #

    Hi Guys,

    Sorry for not replying, this one appears to have missed me.

    With regards to the code appearing with the share, it appears to possibly be an issue with the theme/share plugin.

    The plugin evaluates the PHP code when the shortcode is called, and returns the result to your post.

    I purposely didn't add in-post php because of issues like it appearing in none-shortcoded areas.

    Snippets all the way :)

  8. AnnMarieStone8
    Posted 2 years ago #

    Thank you Julie, I turned off the Jetpack Sharing, but the other one I was using had the same issue. Plus, the automatic email sent by wordpress was showing the code, so I will have to figure that out. I have a thread going now that the app author has responded to.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Code for posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.