Hi @Clapat, Beautiful theme here. I have one small questions Regarding the main slider gallery used on the home page, can I specify what projects I serve up based on tag or slug so I can have different galleries on different pages displaying different projects?
I might get something wrong, because i get error 500.
I create a copy of showcase-page.php renamed showcase-abroaad.php. Chanced the template name and then I copied the code you post me but it doesn't work.
Yes, probably, but you create the page and the page url is different than the page template. What you need to make sure is that you have assigned the page template correctly in page options.
Plz double check.
Then you need to check the code to see if there are additional errors. if everything fails sens us wp admin access.
Hi @Clapat, Beautiful theme here. I have one small questions Regarding the main slider gallery used on the home page, can I specify what projects I serve up based on tag or slug so I can have different galleries on different pages displaying different projects?
Thanks
Ale
Hello Alessandro
You can only include/exclude which items are going to be displayed in the showcase slider.
To achieve what you want is actually not difficult but you need to do some coding
you need to create copies of the showcase-page.php rename them and then change the name of the template (the first lines in the file header)
then you need to modify
$grenada_args = array(
'post_type' => 'grenada_portfolio',
'paged' => $grenada_paged,
'posts_per_page' => 1000,
);
so that will onclude only certain items
https://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters
see post__in or post_name__in parameters
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Thanks for your reply
Could you give me an example how to change the code:
$grenada_args = array('post_type' => 'grenada_portfolio',
'paged' => $grenada_paged,
'posts_per_page' => 1000,
);
to display only items with "design" (for example) slug portfolio category?
I will appreciate a lot
Thanks
Alessandro
Hi Alessandro,
for portfolio category pages you have a special url
http://clapat.ro/themes/grenada-wordpress/portfolio_category/design/
note the taxonomy 'portfolio_category' and the slug 'design'
Coming back to your question, this is how the query arguments would look like:
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
I might get something wrong, because i get error 500.
I create a copy of showcase-page.php renamed showcase-abroaad.php. Chanced the template name and then I copied the code you post me but it doesn't work.
website: www.waamoz.com/new
error page: www.waamoz.com/new/abroaad
A.
Yes, probably, but you create the page and the page url is different than the page template. What you need to make sure is that you have assigned the page template correctly in page options.
Plz double check.
Then you need to check the code to see if there are additional errors. if everything fails sens us wp admin access.
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Thank you Alessandro, appreciate it as well.
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy