Quantcast
Channel: How would you feed Custom Post Types to Facebook? - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 2

How would you feed Custom Post Types to Facebook?

$
0
0

I have this dilemma whereby I'd like FB-Connect or a similar tool to automatically push custom data found in Custom Post Types to Facebook. Here's an example (it only works because it's a manual workaround). The final result is/should be this:

Result with manual workaround

I can achieve that by placing this in the header:

if (is_singular('adoptions')) {
echo '<meta name="description" content="';
echo 'New Pet for Adoption! ' . $name . ' is a ' . $age . ' year old ' . $gender . ' ' . $breed . ' who needs a home!';
echo '" />';}

It's great because I can exactly influence the excerpt (but the downside is everything needs to be done manually). Not so with Custom Post Types and auto-publish where the empty content of the post type then only shows an image and '...', in other words giving the reader no clue what this is about.

What I'm thinking is that I can either:

  • Modify the automatic publisher from WP to push content in this manner (not even sure where to start), or.. and this seems easier;
  • Create a custom RSS feed which is then imported into the page via an RSS app? The added benefit is that the feed can be used elsewhere too.

What does the dream-team think? :)

Thank you!


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images