WordPress.org

Forums

Amazon Product in a Post Plugin
[resolved] How to add this plugin to custom post type? (9 posts)

  1. sureshHARDIYA
    Member
    Posted 2 years ago #

    I have used a plugin called Amazon product in a post. It works okay with posts type. It adds custom fields in the posts page. But, I have made another custom post type called products. It does not work with that. I want the custom field appear in Products post type.

    I have used few suggestions. Adding plugin in custom posts type but it did not work for me.

    I have googled, tried several plugins but none of these seems to work. Can anyone suggest me another plugin or any other way to solve my purpose. What I want to do is, add amazon selected books to my website, in my custom post type pages. I have tried adding

    if(function_exists('amazonProductInAPostBox1')){
        global $appipBulidBox;
        $custom_post_type = 'put-post-type-here';
        add_action('admin_menu', create_function("$appipBulidBox",
    "if( function_exists( 'add_meta_box' ))add_meta_box( 'amazonProductInAPostBox1',
    __( 'Amazon Product In a Post Settings', 'appplugin' ), 'amazonProductInAPostBox1', $custom_post_type, 'normal', 'high' );"));
    }

    But It did not seem to work. Thanks in advance

    http://wordpress.org/extend/plugins/amazon-product-in-a-post-plugin/

  2. prophecy2040
    Member
    Plugin Author

    Posted 2 years ago #

    Suresh
    what is the custom post type you want to hook into?
    You need to make sure you change the $custom_post_type = 'put-post-type-here'; line to be the actual custom post type slug you want to hook it into. Then, I would suggest adding the function to the functions.php.
    And try it this way:

    add_action('admin_menu','new_appip_custom_post_type_metabox');
    function new_appip_custom_post_type_metabox(){
         if(function_exists('amazonProductInAPostBox1') && function_exists( 'add_meta_box')){
             add_meta_box( 'amazonProductInAPostBox1','Amazon Product In a Post Settings', 'amazonProductInAPostBox1', 'put-post-type-here', 'normal', 'high' );
         }
         return;
    }

    Remember to change the post type to the custom slug for yours.
    Warm regards,
    Don

  3. prophecy2040
    Member
    Plugin Author

    Posted 2 years ago #

    Also, remember you can use the shortcode anywhere there is not a meta box (like a widget or a specific place in a page).
    like:
    [AMAZONPRODUCT=B003L77G6A,B000W91RUG,B001FB4VXU]

    Warm regards,
    Don

  4. sureshHARDIYA
    Member
    Posted 2 years ago #

    thanks it helped me.

  5. sureshHARDIYA
    Member
    Posted 2 years ago #

    It showed the custom fields in the custom post type products but unfortunately did not extract information from the amazon site. Also, it it possible to extract proudct description from the site.

  6. prophecy2040
    Member
    Plugin Author

    Posted 2 years ago #

    Suresh,
    Try using this new version of the plugin http://downloads.wordpress.org/plugin/amazon-product-in-a-post-plugin.3.0b.zip.
    It may work better for you.

    Regards,
    Don

  7. sureshHARDIYA
    Member
    Posted 2 years ago #

    When I use this plugin, I faced a strange problem. I uploaded the plugin in local host. The plugin shown fine in localhost. I uploaded the plugin in http://www.behindthestory.org but the plugin does not show up. It is okay when I uploaded through cpanel.

    Is there any way so that I can send you username and password of my site and you can check why I get that problem. May be through skype, my skype id is, dr.chip.skm

    Thanks

  8. prophecy2040
    Member
    Plugin Author

    Posted 2 years ago #

    sure. You can send a username and password.
    send it to dfischer@fischercreativemedia.com and I will check it out for you.

    Regards,
    Don

  9. sureshHARDIYA
    Member
    Posted 2 years ago #

    I have sent you admin panel login credential in that email Please check once and let me know what the problem is and can you please fix that problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Amazon Product in a Post Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic