WordPress.org

Ready to get started?Download WordPress

Forums

Category Grid View Gallery
does not work with custom posttypes (18 posts)

  1. schmunk
    Member
    Posted 2 years ago #

    Hi. It does not work with custom posttypes i created.
    How can i fix this?

    Thank you

    http://wordpress.org/extend/plugins/category-grid-view-gallery/

  2. calabrophoto
    Member
    Posted 2 years ago #

    I've also had problems with this issue. I'd love to see custom post type support in the plugin, or any workarounds anyone has found.

  3. lesignage
    Member
    Posted 2 years ago #

    I am also stuck at this point.

    I have used the Types plugin to create a custom post type and custom fields for displaying products with package/weight/shelf life/etc. I have then created categories for each group of products and a corresponding page in which to display these products.

    However when i use the shortcode on the page to display the category, it doesn't show the posts within that category.

    Here is the shortcode i am using:
    [cgview id=15 name=Grill-lihad size=200x200 quality=100 lightbox=0]

    Any help would be MASSIVELY appreciated as this is the only thing holding my project up! :(

  4. Anshul
    Member
    Plugin Author

    Posted 2 years ago #

    Let me work over it over the weekends. Still it will be a while, maybe a month for me to release an update. I barely get time to work on plugin development

  5. lesignage
    Member
    Posted 2 years ago #

    Thank you so much Anshul!

  6. hubb360
    Member
    Posted 1 year ago #

    Hi
    Love the plugin but the same problem with custom post types.
    http://hu.bb/just-images/

  7. jfculhane
    Member
    Posted 1 year ago #

    Has anyone come up with an alternate solution for this?
    Or is there another category thumbnail plugin that supports Custom Post Types?
    This would be great with tags also.

    I've tried Custom Post Types in Taxonomy Archives which seems to help CPT with my theme.
    http://innerdvations.com/plugins/custom-post-types-in-taxonomy-archives/

    Thanks.

    JFC

  8. calabrophoto
    Member
    Posted 1 year ago #

    @jfculhane:

    I ended up using Featured Posts Grid (http://wordpress.org/extend/plugins/featured-posts-grid/), which does support custom post types, but doesn't have quite as refined a backend UI.

  9. toast822
    Member
    Posted 1 year ago #

    This a dealbreaker sadly, great plugin otherwise but have to rescind my earlier vote :(

  10. ruess
    Member
    Posted 1 year ago #

    I think I got it.

    In file: CatGridData.php, find:

    //Build the query for get_posts()
            $cgquery = array(		'cat' => $this->cgid ,
    								'posts_per_page' => $this->params['num'] ,
                                    'orderby' => $this->params['orderby'] ,
                                    'order' => $this->params['order'] ,
                                    'post__not_in' => explode(',',$this->params['excludeposts']) ,
                                    'tag' => $this->params['tags'] ,
                                    'offset' => $this->params['offset'],
    								'meta_key' => $this->params['customfield'],
    								'meta_value' => $this->params['customfieldvalue'],
    								);

    then add the link:
    'post_type' => array('post','custom_post_type')
    right after:
    'meta_value' => $this->params['customfieldvalue'],
    and before
    );

  11. ruess
    Member
    Posted 1 year ago #

    woops "add the *line*" not "link" :)

  12. ruess
    Member
    Posted 1 year ago #

    Well sorta works - now I can't filter it by category though - only able to display the entire lot of my custom post type. :(

  13. ajamm
    Member
    Posted 1 year ago #

    adding that line broke my install...

  14. ajamm
    Member
    Posted 1 year ago #

    Should I be replacing the 'custom_post_type' with my post type?
    I tried that, but got a fatal error when reactivating...
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

  15. David Klhufek
    Member
    Posted 1 year ago #

    @mess you make my day, thx a lot, this code worked for me.. 'post_type' => array('post','custom_post_type')

  16. gautamarya
    Member
    Posted 1 year ago #

    @Anshul Thanks for the great plugin. I wanted to sort my category post in an order of custom field. so here is my short code that I'm using.

    [cgview id=40 size=250x150 orderby="meta_value_num" order="asc"]

    "meta_value_num" is the custom field I've added and I want my result to be sorted by this. But this is not working, it shows me the post with order of title in desc manners.

    Can you please help me to figure out where I am going wrong?

    Thank you,
    Gautam

  17. David Klhufek
    Member
    Posted 1 year ago #

    @gautamarya
    hi, do you make change in code that @mess wrote?
    try to add line 'post_type' => array('meta_value_num','custom_post_type') to file
    CatGridData.php

    lately try [cgview id=40 size=250x150 order="asc"] on order you can use also DESC

    hope this help, for me it's working like a charm..

  18. gautamarya
    Member
    Posted 1 year ago #

    @David Thanks for your reply, but still the same issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.