WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Determinate if is a post or a product (3 posts)

  1. Bellu
    Member
    Posted 11 months ago #

    Hi,

    how can i determinate when single.php is showing, if is a simple post or a product?

    Thanks

    http://wordpress.org/plugins/eshop/

  2. esmi
    Forum Moderator
    Posted 11 months ago #

    Try get_post_meta($post->ID, '_eshop_product', true).

  3. Bellu
    Member
    Posted 11 months ago #

    Thank you.

    I use get_post_custom and after i look for [_eshop_product] i think this is the same solution.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags