View Single Post
  #1  
Old September 1st, 2014, 12:41 PM
erceemedia erceemedia is offline
 
Join Date: Mar 2014
Posts: 10
Default Insert related post into a WP post with keywords

Hi

I would like to integrate related products in wp-post as described and solved in this post:
/show...t=custom+field

I've succeeded to integrate this in my Metro themen with the Genesis framework with a hook in the functions.php.

The php in the Genesisi functions.php :

// Datafeedr related posts

function aanbiedingen() {

$keywords = get_post_meta(get_the_ID(), 'keywords', true);
if ($keywords != '') {
echo datafeedr_tag('ForArticles?word='.$keywords);
}
}

add_action( 'genesis_before_comments', 'aanbiedingen' );

The related products are shown based on the keywords in the customfield of the post. So that works fine.

Only the formatting is not as usual with the related products in a 3 column. They are visible as 3 products with big pictures and text. It seems a problem with the CSS. Any idea how to fix this?

In the factory ive made a new view with a 3 column template

You can see it at this url http://www.wintersporteuropa.nl/westendorf/ and scroll down to the bottom of the page just at Drie actuele aanbiedingen

From the Netherlands
Ruud (new here and my thirst question, hope everything went well and is clear)