November 27, 2014 at 2:29 pm #3959
Hi, I wanted to know if it was possible to exclude from the homepage view some box and show them only on specific pages
e.November 28, 2014 at 5:38 pm #3963
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?
e.December 1, 2014 at 9:32 pm #3968
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?
Andrii / Satori StudioDecember 2, 2014 at 3:37 pm #3972December 2, 2014 at 4:45 pm #3974
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!
Andrii / Satori StudioDecember 2, 2014 at 5:33 pm #3975
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 ) );
$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(
‘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
e.December 3, 2014 at 9:59 pm #3978
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.December 4, 2014 at 3:10 pm #3979
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)
You must be logged in to reply to this topic.