New Front EN › Support Forums › Ikebana Theme Support › Exclude box fro homepage
- This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by e061070.
-
AuthorPosts
-
November 27, 2014 at 2:29 pm #3959e061070Participant
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.November 28, 2014 at 5:38 pm #3963e061070ParticipantHi, 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.December 1, 2014 at 9:32 pm #3968satoriKeymasterHey 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 StudioDecember 2, 2014 at 3:37 pm #3972e061070ParticipantHi 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.December 2, 2014 at 4:45 pm #3974satoriKeymasterHey 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 StudioDecember 2, 2014 at 5:33 pm #3975e061070ParticipantHi 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.December 3, 2014 at 9:59 pm #3978e061070ParticipantHi 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 #3979e061070ParticipantHi 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. -
AuthorPosts
- You must be logged in to reply to this topic.