Support » Plugin: Grid Products » Products posts not showing up

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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….

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

    Plugin Contributor ModDish

    (@moddish)

    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.

    Plugin Contributor ModDish

    (@moddish)

    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' ){
    	?>

    Thanks 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Products posts not showing up’ is closed to new replies.