Before you ask please READ THIS

Have a different menu visualization

edited November 2013 in Hypershot Posts: 10
Hi all, i need a support to manage differet type of menu on my web site i would like to have one menu that display a gallery in a way like this:
http://themes.apollo13.eu/hypershot/album/grid-2/
and it could be my home page and or portfolio.

Moreover I would like to have onother menu item that display a specific set of galleries that i woul like to exclude from the previose one.

this is my website
http://man.giacintomozzetta.com/

In other words i would like to have :

- Homepage that display a set of specific galleries
- Portfolio that display all my galleries
- WEB WOOF: specific galleries taht i would like to exclude from HOMEPAGE and PORTFOLIO.

Hope that everything is clear.



Colud you please help me.

With regards
Giacinto


Post edited by Air on

Comments

  • edited November 2013 Posts: 10
    Sorry i have another question on this point i do this in the albums-list.php
    //get album genres
                $terms = wp_get_post_terms($post->ID, 'genre', array("fields" => "All"));
    
    I modify the word All with another genre to see if something change, but nothing happen. After I re change in All but the genre doesn't work :(
    Please help me asap
    Post edited by Air on
  • AirAir
    Posts: 10,606
    Hello

    You write in wrong category again.
    gmozzet said: In other words i would like to have :

    1. Homepage that display a set of specific galleries
    2. Portfolio that display all my galleries
    3. WEB WOOF: specific galleries taht i would like to exclude from HOMEPAGE and PORTFOLIO.
    1. You can display either 1 gallery or all galleries on Homepage. Excluding would require some custom coding.
    2. That you can achieve easily http://apollo13.eu/docs/hypershot/#!/adding_album_adding_albums_list
    3. Custom coding
    gmozzet said:
    //get album genres<br>            $terms = wp_get_post_terms($post-&gt;ID, 'genre', array("fields" =&gt; "All"));<br>
    I modify the word All with another genre to see if something change, but nothing happen. After I re change in All but the genre doesn't work :(
    Do you know what are you doing or just blind shooting? :-)

    Anyway there are various topics here that could give you a hint how to achieve it, example:
    http://support.apollo13.eu/discussion/comment/6153#Comment_6153 - it is about our newer theme, but still idea is the same:-)

    With regards.
  • edited November 2013 Posts: 10
    Hi
    I mada the same modification
    a have done this in my "front-page.php"
    
    elseif($fp_variant == 'albums_list'){
        define('CALLED_FROM_FRONT_PAGE', true);
        get_template_part( 'albums_template' );
    }
    and also this in the "album-list.php"
    
    if(defined('CALLED_FROM_FRONT_PAGE')){
                $args[CPT_WORK_TAXONOMY] = 'webwoof';
        }
    
    ---------------------------------------
    In the reffered post you mention to do this cusrtomization anf to change the slug category. I mada as an example one of my genre "webwoof". Unfortunatelly nothing change. Note that my albums have a genre and not a category.
    
    if(defined('CALLED_FROM_FRONT_PAGE')){
                $args[CPT_WORK_TAXONOMY] = 'slug_of_category';
        }
    
    and change 'slug_of_category' to desired category slug

    -----------------------------------------

    Could you please help me ?

    Thanks and regards




    Post edited by Air on
  • AirAir
    Posts: 10,606
    I asked you earlier
    Air said: Do you know what are you doing or just blind shooting? :-)
    ;-)

    I think you are pretty close. Last part of code should look rather like this
    
    if(defined('CALLED_FROM_FRONT_PAGE')){
                $args['genre'] = 'webwoof';
        }
    
    Try it, and tell me is it better now.

    With regards.
  • Solved ! Thanks
  • Posts: 38
    In this tweak would another page not being front page display all galleries ?
  • AirAir
    Posts: 10,606
    Probably - test it:-)

    With regards.
  • Posts: 38
    Good idea :)

    Although if I could id the location of line to be added in front-page.php I'm a bit more doubtfull in the album-list.php ... where should I force the genre ?

    I'll try but... if you have answer it would avoid me breaking everything :D
  • Posts: 38
    Could do it - no pb
  • AirAir
    Posts: 10,606
  • Posts: 38
    Oh, and for further readers to know, it works : one genre only on frontpage and all displayed on another empty page having the albums template.

    Thanks Air & Gmozzet
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!