I have 3 custom Queries for the Portfolio and they are each select from tags and can be filtered by categories. Now I want to have the tags (every item has only one tag) appear in the URL of the portfolio-item like so:
/portfolio/tag/post-title
I dont seem to find a way to do so. Can you think of something?
This is a customization question and support doesn't offer customization services as we wrote on our support homepage and on this area. I will try to help you this time though
Yes that is possible, to do that you should add this code in functions.php
After this, go to Settings > Permalinks and just click Save Changes to flush permalinks. After that you will be able to see the permalink structure of /portfolio/tag/post-title
thank you very much, I tried that and now the contents of each portfolio-item are shown on one page. Do you have any ideas how to solve that? I'm sorry, please tell me when this exceeds the realm of support. :)
Sorry for the delay as I was not able to provide support for customers.
Can you please tell me what exactly is the problem, because I do not understand the content of each portfolio item is showing in one page. It would help me if you provide your WP credentials so I can test directly on your site my solution.
To include your credentials click Insert Credentials button in editor toolbar. (See how)
This pertains to customization, and our support team does not provide customization services, as stated on our support homepage and in this section. However, I'll do my best to assist you this last time.
I've added the following code snippet that will distinguish the requested portfolio ID, since the WordPress behavior returns one or more posts depending on the matched items:
thank you so much for your help and your goodwill!
In case something else would pop up where I don't know how to solve it. Would it be possible for me to hire you? Or in case you are not interested would you know someone who would be willing to take on some smaller projects like this customization? I am pretty much always using the kalium theme or the twenty-tweny-4 theme to build websites so those would be familiar to you.
You are welcome, always. I am sorry but I cannot take any custom work apart from Laborator, however feel free to ask questions and if I cannot help you, then I could recommend adequate people for you. Simply open a ticket here or drop an email in our contact form requesting for my help.
If you have a spare moment, I kindly request that you consider sharing your positive experience with us on G2 because we are trying to push Kalium outside of ThemeForest and we need your help. Your review would not only make our day but also help other potential customers to make an informed decision about choosing our theme for their needs.
I have 3 custom Queries for the Portfolio and they are each select from tags and can be filtered by categories. Now I want to have the tags (every item has only one tag) appear in the URL of the portfolio-item like so:
/portfolio/tag/post-title
I dont seem to find a way to do so. Can you think of something?
Thx in advance
Jesko
Hi Jesko,
This is a customization question and support doesn't offer customization services as we wrote on our support homepage and on this area. I will try to help you this time though
Yes that is possible, to do that you should add this code in functions.php
After this, go to Settings > Permalinks and just click Save Changes to flush permalinks. After that you will be able to see the permalink structure of /portfolio/tag/post-title
No way! :D You are the best! That worked like a charm.
Thank you so much! :)
Hi Arlind,
sorry I just realized that this is not quite working in my special case. I need the have identical post names with different tags. For example:
domain.com/portfolio/tag-A/ABC and
domain.com/portfolio/tag-B/ABC
What wordpress is doing now is this:
domain.com/portfolio/tag-B/ABC-2
Because it thinks that the slug already exists. Do you have any ideas to tweak the code to do what I need?
Thanks in advance!
Jesko
Hi Jesko,
I am glad that it worked for you!
Sure you can prevent this behavior of WordPress by disabling the unique post slug check for "portfolio" post type:
Hi Arlind,
thank you very much, I tried that and now the contents of each portfolio-item are shown on one page. Do you have any ideas how to solve that? I'm sorry, please tell me when this exceeds the realm of support. :)
Best regards,
Jesko
Hi Jesko,
Sorry for the delay as I was not able to provide support for customers.
Can you please tell me what exactly is the problem, because I do not understand the content of each portfolio item is showing in one page. It would help me if you provide your WP credentials so I can test directly on your site my solution.
To include your credentials click Insert Credentials button in editor toolbar. (See how)
Hi Jesko,
This pertains to customization, and our support team does not provide customization services, as stated on our support homepage and in this section. However, I'll do my best to assist you this last time.
I've added the following code snippet that will distinguish the requested portfolio ID, since the WordPress behavior returns one or more posts depending on the matched items:
Now after this, you see that these portfolio items are separated:
Post 1
(view large image)
Post 2
(view large image)
Hi Arlind,
thank you so much for your help and your goodwill!
In case something else would pop up where I don't know how to solve it. Would it be possible for me to hire you? Or in case you are not interested would you know someone who would be willing to take on some smaller projects like this customization? I am pretty much always using the kalium theme or the twenty-tweny-4 theme to build websites so those would be familiar to you.
Thanks again and best regards,
Jesko
Hi Jesko,
You are welcome, always. I am sorry but I cannot take any custom work apart from Laborator, however feel free to ask questions and if I cannot help you, then I could recommend adequate people for you. Simply open a ticket here or drop an email in our contact form requesting for my help.
Hi Arlind,
allright that's what I thought. :) That's perfect. Will do so.
Thanks again and kind regards,
Jesko
Thank you for your understanding.
If you have a spare moment, I kindly request that you consider sharing your positive experience with us on G2 because we are trying to push Kalium outside of ThemeForest and we need your help. Your review would not only make our day but also help other potential customers to make an informed decision about choosing our theme for their needs.
Of course. Review is done. ;)
All the best for your aspirations to be independent from themeforest!
Kind regards,
Jesko