Verhoeven
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Developing with WordPress
In reply to: Different styles for categories in same queryI worked it out. I used your advice and made it work with a slightly different approach.
I first call the category:
<?php $cat = get_the_category(); ?>Then I create an “if” function for both categories:
<?php if (has_category(’11’)) : ?> …etcThank you for your advice and tips.
Problem resolved!
Forum: Developing with WordPress
In reply to: Different styles for categories in same querySorry, didn’t realize you weren’t able to see it.
New link: https://pastebin.com/5HQphfNhForum: Developing with WordPress
In reply to: Different styles for categories in same queryI have uploaded a snippet of the code to: https://pastebin.com/ECB0JDWh
Forum: Developing with WordPress
In reply to: Different styles for categories in same queryI want to color an svg icon in that grid block based on the category. I want to do that by loading css.
Forum: Developing with WordPress
In reply to: Get the current shown page to be the first in a wp_queryThank you for your reply. I managed to get it working. By getting the page-ID and then getting it’s position in the menu_order I could use the initialSlide-function form the slick slider.
Viewing 5 replies - 1 through 5 (of 5 total)