New Front EN › Support Forums › Ikebana Theme Support › Multiple Pages with different Portfolio page
- This topic has 21 replies, 6 voices, and was last updated 10 years, 5 months ago by selj634.
-
AuthorPosts
-
May 27, 2014 at 6:48 pm #3367orenParticipant
Like a magic!
Thanks!May 28, 2014 at 11:07 pm #3375satoriKeymasterAnytime ;)
Best,
Andrii / Satori StudioJune 26, 2014 at 3:28 pm #3619sdanpoParticipantAndrii,
I have one question regarding.
I used your recommendation for tags.The only problem is that on the tag pages I get a bit area with the tag name.
Would you be able to tell me how can I avoid this area ?Thanks,
DanJune 30, 2014 at 11:49 am #3628satoriKeymasterHey Dan,
the tile with the tag name and description is added automatically to each tag archive via the template file. I’ve prepared a customized file for you where the respective code has been removed: please download this archive, unzip it, and upload the resulting file into the theme folder (/wp-content/themes/Ikebana/) via ftp, replacing the existing files when prompted.
Let me know in case the file works in an unintended way!
Sincerely,
Andrii / Satori StudioJune 30, 2014 at 5:12 pm #3633selj634ParticipantHi Andrii,
I love the design of this template!
I have a few questions on it. Please forgive me as I am completely new to this and the questions may be very basic!
I have followed the above guidance on creating tag archives. My ‘team’ page now shows only the portfolio projects that have a tag of team. But my home page is showing all portfolio projects.
There is a reply on May 26, 2014 at 12:35 pm you gave in a previous post on this question on ‘slugs.’
My questions:
1) What is a slug?
2) In order for the homepage to exclude the portfolio projects with a tag of ‘team,’ do I need to replace the code on page_portfolio.php file with the below code you noted in your reply on May 26 or just change the slugs?
$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( 1, 2, 3 ),
‘operator’ => ‘NOT IN’
)
) ) );3) How do I change the permalink of Team page from ‘www.websitename.com/tag-portfolio/team’ to ‘www.websitename.com/team’?
Thanks for all your help!
Selena
July 1, 2014 at 6:47 am #3635satoriKeymasterHey Selena,
first of all, thank you for the purchase!
I will cover the questions in the same order:
1). A “slug” is another name for the human-readable part of a web page’s URL; for example, if your website’s homepage URL address is “example.com”, then a contacts page on that website may have a URL of “example.com/?p=34”, which does not convey a lot of information to the end user – or it can be “example.com/contacts”, which is a semantic URL with a slug “contacts”. You can read more about URL slugs and permalinks here and here.
2). The code you’ve provided needs to replace line 69 of the “page_portfolio.php” template file, yet if you are not familiar with PHP, I would suggest that I make the changes for you, because a single PHP code mistake may render your website quite unusable. If you’re using an FTP client, I can provide you with a changed file – or you can give me access to your WordPress backend, and I will implement the code; as you wish.
3). This is not possible in WordPress without using a separate plugin, e.g. this one – otherwise, the “tag-portfolio” part is the slug of the portfolio tag, which cannot normally be avoided.
Sincerely,
Andrii / Satori StudioJuly 1, 2014 at 1:26 pm #3644selj634ParticipantThanks Andrii. Your response was really helpful. I also realized if you go into ‘Quick Edit’ on a project, the slug is noted there as well. Thanks for looking up the plug-in – I installed it and it works perfectly!
If you could make the changes for me in the page_portfolio.php template, I would really appreciate it. I’ll then add the slugs to the terms line of code.
Thanks again!
Selena
July 2, 2014 at 9:00 am #3655satoriKeymasterHey Selena,
alright, in this case I will need the IDs of the portfolio tags you want excluded from the portfolio template page; you can find the ID of the tag by visiting “Portfolio -> Tags” admin section, clicking on the relevant tag, and looking at the URL: the number after “&tag_ID=” is the tag ID.
Sincerely,
Andrii / Satori StudioJuly 5, 2014 at 11:43 am #3682Luigi26ParticipantHi Andrii,
can you insert the “the WP_Query object has an option to exclude certain items PORTFOLIO of custom taxonomies” function in “Theme Option”.
Best regards.Luigi
July 5, 2014 at 7:16 pm #3683selj634ParticipantThanks Andrii.
The tag ID I would like excluded is 9.
Thanks again,
Selena -
AuthorPosts
- You must be logged in to reply to this topic.