Support » Plugin: Facebook Featured Image and Open Graph Meta Tags » Using Variable As Description/Title tag

  • Hi there, Is there any way to use your plugin but change the description or title area in the code so it pulls a variable from another file, I’ve tried including the other file at the start of the code and then inserting the variable in between the ” ” ( a couple of different ways ) but it just shows up as empty if I share to FB, The reason I’d like to do this is to include the price from my Thecartpress E-commerce site alongside the title, the products are generated as custom post types so it pulls everything else fine. I don’t know if I need to provide some kind of formatting around the variable so it will be read properly or something? I feel like this would be a handy wee piece of advice as I’m sure other people would be interested in doing the same thing. Thanks in advance for any advice you can give on the subject, I’m no coding expert but I understand the basics and I’m more than prepared to give this a go and learn anything I don’t already know if you could point me in the right direction.

    Cheers.

    https://wordpress.org/plugins/facebook-featured-image-and-open-graph-meta-tags/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Variable As Description/Title tag’ is closed to new replies.