Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Insert related post into a WP post with keywords (/showthread.php?t=10934)

erceemedia September 1st, 2014 12:41 PM

Insert related post into a WP post with keywords

I would like to integrate related products in wp-post as described and solved in this post:

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 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)

Eric September 1st, 2014 12:51 PM


You just need to add the word view here: The Factory > Your Store > VIEWS > CUSTOM VIEWS > ForArticles > View menu > View Properties > CSS ID.


erceemedia September 1st, 2014 02:19 PM

Eric, that was fast. Had to change "view" also in de product list properties. Everything works fine now. Thanks a lot!


Eric September 1st, 2014 02:20 PM

Great! :)

All times are GMT -5. The time now is 12:54 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.