Mix Facebook and Twitter feed into custom posts

I am currently running into a problem where I have to combine my Custom Post Type posts with the feed of a facebook page and a twitter channel. I know that there are a lot of plugins out there that display the individual feeds using a short code, but I can’t implement that into the design necessity I am facing – all posts are displayed in a grid via masonry.js and the twitter and facebook “posts” should be displayed inside of this grid with the same look and feel as the other posts.

I am getting my custom posts via the following query using the loop:

$args = array(
‘post_type’ => ‘eunv_tilemanager’,
‘posts_per_page’ => -1,

‘meta_query’ => array(
‘relation’ => ‘AND’,
‘priority_clause’ => array(
‘key’ => ‘prioritat’,
‘compare’ => ‘EXISTS’
‘orderby’ => array(
‘priority_clause’ => ‘DESC’,
‘date’ => ‘DESC’
$loop = new WP_Query( $args );

The perfect solution would be if I could import the facebook/twitter feed of a page into the posts query, give them a priority as well as the date the fb/twitter post was published, so I could keep my current sorting as is.

If there is any other possible solution, I’d gladly take any hints. If it helps and offers such possibility, I’ve bought the plugin FlowFlow to display social media walls on another page.

Thank you in advance and best regards


Read more here:: Mix Facebook and Twitter feed into custom posts

Leave a Reply

Your email address will not be published. Required fields are marked *