• Resolved Candace

    (@aunrea)


    Is there a way to have custom post types have products added to them? Or will it only work with regular posts?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author elfin

    (@elfin)

    can be done via a small plugin, just add a filter to: eshop_post_types
    it contains an array, so either add to or replace it.

    Thread Starter Candace

    (@aunrea)

    THANKS! That did it!

    Thread Starter Candace

    (@aunrea)

    Now how do I get eshop custom fields to shop in my custom post type admin area? I have the code below but it doesn’t work:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Hi, can you direct me where to add the eshop_post_types filter?

    Thread Starter Candace

    (@aunrea)

    It is in the file eshop-product-entry.php near the top.
    change:
    $array=array('post', 'page');

    Plugin Author elfin

    (@elfin)

    no you don’t need to do that at all.

    you create a filter for the eshop_post_types array, and add it in there. there is no need to edit eShop core files.

    Rich,
    Could you post an example snippet for adding a custom post type filter for eshop_post_types?

    http://quirm.net/forum/topic.php?id=2850

    that page shows how to do this properly with the filter he was talking about….

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: eShop] Adding to Custom Posts’ is closed to new replies.