Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Exclude box fro homepage

New Front EN Support Forums Ikebana Theme Support Exclude box fro homepage

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3959
    e061070
    Participant

    Hi, I wanted to know if it was possible to exclude from the homepage view some box and show them only on specific pages
    tnx.
    e.

    #3963
    e061070
    Participant

    Hi, Excuse me,I’m rereading the post and I realized I explained myself. The home is a portfolio page, the portfolio page consists of portfolio post + tag (example: home, business, sports, dog, cat).
    For all portfolio post on the home just tell him how tags that are also home, and everything works ok.
    Now I need to make a portfolio page example AAAA, whit portfolio tag: dog and cat. Without the other.
    To make a page “virtual” with porfolio just create a link to: http://sito.com/tag-porfolio/dog and this works, but what I need is to make a physical page, example: http: // site .com / YYYY tagged dog, cat, sports. how can I do?
    tnx
    e.

    #3968
    mmsatori
    Keymaster

    Hey e.,

    do I understand correctly: you need to create a page equivalent in functionality to a “tag-portfolio” page, but without the “tag-portfolio” part in the URL?

    Sincerely,
    Andrii / Satori Studio

    #3972
    e061070
    Participant

    Hi Andrii, no, I need to create a same page portfolio (page_portfolio.php – http://lab.biffi.com/), but only use atag that I can choose and not using http://lab.biffi.com/tag-portfolio/news/, new portfolio with the same layout of the homepage, being able to choose a tag ex.news

    tnx.
    e.

    #3974
    mmsatori
    Keymaster

    Hey Galini,

    this hasn’t been envisaged in the theme – by design the portfolio page displays all projects, and the tag archive pages display projects belonging to certain tags. However, this can be done via some template code customization, and I’ve already provided the relevant code in this thread. Let me know if you have any questions on that one!

    Sincerely,
    Andrii / Satori Studio

    #3975
    e061070
    Participant

    Hi Andrii, I read, and I’ve tried, I’ve created a new page php: page_peros.php copy of page_portfolio.php
    I created a new page, “peros” (http://lab.biffi.com/peros/), and I used it as a model “peros”, I edited the file (page_peros.php) to the line 69, and I’ve changed:

    $wp_query = new WP_Query( array( ‘posts_per_page’ => $ppp , ‘post_type’ => ‘project’ , ‘paged’ => $paged , ‘post__not_in’ => $exclude_ids,’news’, ‘order’ => $order, ‘orderby’ => $orderby ) );

    with:

    $wp_query = new WP_Query( array( ‘posts_per_page’ => $ppp , ‘post_type’ => ‘project’ , ‘paged’ => $paged , ‘post__not_in’ => $exclude_ids, ‘order’ => $order, ‘orderby’ => $orderby, ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘tagportfolio’,
    ‘field’ => ‘slug’,
    ‘terms’ => array( 14,18 ),
    ‘operator’ => ‘NOT IN’
    )
    ) ) );

    Where 14 and 18 are the tags home and news, so I should have a page with a single box (slut tag, 29 – http://lab.biffi.com/project/lorem-ipsum-test/). but I watch that tag is 14 and 18 in a horizontal box tag(no 29 slut), I think I have something wrong
    :-(
    tnx
    e.

    #3978
    e061070
    Participant

    Hi Andrii, I tried to add the extra conditions, but it does not work, there’s probably more, would be added in a new version;-) 3.4 … too complicated, I will try another template, thanks anyway for the support.
    e.

    #3979
    e061070
    Participant

    Hi Andrii, dont kill me!…my boss does not want to change theme and I understand, you did an excellent job and really like it. But the solution that I have proposed is too complicated having to make many different pages. I make you a question, if I continue to use the portfolio pages (http://site.com/tag-portfolio/xxxx/), I can remove the box with the title and add a slider as I did for the home page for each different ? (1 for home slider, slider 2 for xxxx, and moore)
    tnx
    e.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.