WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. julie
    Member
    Posted 10 months 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!

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

  2. AnnMarieStone8
    Member
    Posted 5 months ago #

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

  3. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

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

  4. AnnMarieStone8
    Member
    Posted 5 months 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
    Member
    Posted 5 months 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
    Member
    Posted 5 months 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
    Member
    Plugin Author

    Posted 5 months 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
    Member
    Posted 5 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.