Before you ask please READ THIS

Display Gallery Type...

edited June 2014 in Beach Please Posts: 21
Tropical Message Again !

I have a request, but maybe it's to deep in coding needs.

Would it be possible to display multiple galleries type on only one page ?
Each Gallery type could display it's name as title.
See my attached file to illustrate it.


I'm Using Post Type Order, the author of that plugin seem to have a lot of talent in taxonomy management, but i couldn't find something that convinced me. I'm ready to dive in the code if you give me a hint.

Thanks again, cheers.
PRTSCRNGALLERYTYPE.jpg
1349 x 584 - 220K

Comments

  • AirAir
    Posts: 10,970
    Hello there:-)

    To display different categories of galleries in such way you will have to customize theme a bit more. Work in galleires-list.php.

    To get all categories you can use code from line 60
    $terms = get_terms(CPT_GALLERY_TAXONOMY, 'hide_empty=1');, then you can use this to make different queries and displaying items.

    Mainly you have all code you need in that file but you have to rearrange it and call new query for each category. So you have some job to do:-)

    Hope that will help you somehow.
  • That's nice,

    i'm gonna try this.

    But now, i realize seeing that code that i just put a display:none on the genre filter, because i didn't want to see it on my "works" page.

    I tried to put it back and remembered it was usefull for galleries.

    Is there some way to hide the genre filter on work list and keep it on gallery list ?

    could be added on next update in those pages options ?
  • AirAir
    Posts: 10,970
    on both these pages you have different class in body element - use it to hide filter there where you wish to hide it.

    With regards.
  • edited June 2014 Posts: 21
    I'm sorry for that one, i' can't find any differences for those page
    and it seems to be the same class for the filter.

    I'd like to keep the filter on the gallery list page, and hide it on the work list page.
    Can you give me the custom css to do so ?

    Thanks
    Post edited by Air on
  • AirAir
    Posts: 10,970
    Palm0live974 said: I'm sorry for that one, i' can't find any differences for those page
    and it seems to be the same class for the filter.
    Air said: on both these pages you have different class in body element
    body.galleries-list-page - for galleries list
    body.works-list-page - for works list

    Now you know what to do with these? :-)

    With regards.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!