WordPress.org

Support

Support » Plugins and Hacks » PHP Code for posts » [Resolved] PHP Code shows up when Post is Shared

[Resolved] PHP Code shows up when Post is Shared

  • 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!

    http://wordpress.org/extend/plugins/php-code-for-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Julie, did you get an answer? I have this same issue.

    esmi

    @esmi

    Forum Moderator

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

    AnnMarieStone8

    @annmariestone8

    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.

    julie

    @jacleaves

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

    julie

    @jacleaves

    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.

    Plugin Author Jamie

    @themissingcode

    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 🙂

    AnnMarieStone8

    @annmariestone8

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] PHP Code shows up when Post is Shared’ is closed to new replies.
Skip to toolbar