I have followed all the information, but my products won’t display. Do you have any idea?
page.php:
$posts = get_posts( array( 'post_type' => 'product' ) );
foreach( $posts as $post ) {
setup_postdata( $post );
the_title();
the_post_thumbnail();
the_content();
if( class_exists( 'LDB_Affiliate_Press' ) ) {
$ap = new LDB_Affiliate_Press;
echo $ap->AP_getPrices( true );
}
}
functions.php:
add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
if ( is_category() && $query->is_main_query() )
$query->set( 'post_type', array( 'post', 'product' ) );
return $query;
}
on the page in wordpress CMS:
<?php my_get_posts();?>
Is this allright?
I have two pages with products and prices, but on my website (https://hiphopsisters.nl/?page_id=386) I get the warning: No prices were found.
Can you help me? Thanks in advance
]]>I want to build a site which compare the different CFD providers and also some online trading education contents but the end goal is to earn money from the affliate programs And I want the framework of this site to be reusable so I can apply the same framework of other affliate products I would like to know if this plugin suits my needs Thank you very much
]]>I would like to make the title and the thumbnail clickable. Are you somehow able to access the link variable when outputting the products?
Like:
<h2><a href="<?php echo $title; ?>"><?php the_title(); ?></a></h2>
Hi Luc,
Can I use this plugin to create a page, showing daily deals via affiliate feeds? E.g. https://www.codeknaller.nl/dagaanbiedingen
]]>EDIT:
question answered
]]>Currently I’m looking for people who are willing to send me examples of their product feeds so I can improve this plugin further. Please send your XML product feeds as attachment to [email protected].
]]>