WordPress.org

Forums

Grid Products
[resolved] Products posts not showing up (6 posts)

  1. Cyanure25
    Member
    Posted 1 year ago #

    Hello ! Thanks for that amazing plugin, it works great except for the products posts that are not showing up. The products grid is working well but there is nothing in the products pages. I saved the permalinks a few times already so it's obviously not the problem. I don't have any error message neither. Anyone can help ? (I use the Attitude Theme).

    The link to my products grid page : http://planete-vin.com/nos-vins/amerique/

    http://wordpress.org/plugins/grid-products/

  2. Cyanure25
    Member
    Posted 1 year ago #

    Hello again ! I found a way ti make it work (it had something to do with my theme) but I am still looking for a way to remove the date and the author on the product page....

  3. Cyanure25
    Member
    Posted 1 year ago #

    ... and to show the featured image on the product page...

  4. ModDish
    Member
    Plugin Contributor

    Posted 1 year ago #

    data and authour is part of your themes single.php file.

    you would need to add a php statment around them to remove them on product pages :

    <?php
    	if (get_post_type( $post->ID ) != 'products' ){
    	?>
    
    code that shows the authour etc gere
    
    <?php } ?>

    for the image :

    $theimage=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID) , 'product-image');
    ?>
    <img class="alignright size-thumbnail wp-image-181" style="margin-left: 10px; margin-right: 10px;" alt="" src="<?php echo $theimage[0]; ?>">
    <?php } ?>

    you may need to play with the code a bit but that gives you the gist of it.

  5. ModDish
    Member
    Plugin Contributor

    Posted 1 year ago #

    hrmm cant edit

    the first line in the php code should be :

    <?php
    	if (get_post_type( $post->ID ) != 'grid_products' ){
    	?>

    Not

    if (get_post_type( $post->ID ) != 'products' ){
    	?>
  6. Cyanure25
    Member
    Posted 1 year ago #

    Thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Grid Products
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic