One Category as Gallery

Viewing 3 posts - 1 through 3 (of 3 total)
  • #2300
    mikyu
    Participant

    Is there a way to view only one category as gallery, and the others as blog? โ€˜Coz with your feature, itโ€™s the other way around. ๐Ÿ˜›

    #2301
    Daniel Tara
    Keymaster

    There is a way to do it, but you’ll have to do some modifications.

    In category.php find the line:

    <?php if( ( 'gallery' == minimatica_get_option( 'category_view' ) ) && ( get_query_var( 'cat' ) != minimatica_get_option( 'blog_category' ) ) ) : ?>

    replace it with:

    <?php if( ! ( ( 'gallery' == minimatica_get_option( 'category_view' ) ) && ( get_query_var( 'cat' ) != minimatica_get_option( 'blog_category' ) ) ) ) : ?>

    You’re actually negating the statement and reversing its logic:
    The blog category will become the gallery category and vice-versa.

    If you want it to generally usable, you may also want to replace the words “Blog category” with “Gallery category” in theme-options.php

    #2302
    mikyu
    Participant

    thank you! it’s working now. ๐Ÿ™‚

Viewing 3 posts - 1 through 3 (of 3 total)

Tagged: ,

You must be logged in to reply to this topic.