• I’d like to be able to create a “featured” category with 6 sub-categories w/ posts in wp-admin and display them on my homepage. Currently I have the featured sub-categories hardcoded within homepage.php – is there a way to do this dynamically so the client can set up the categories themselves?

    Current code:
    https://pastebin.com/q3X5CWvV

    Thanks!

Viewing 1 replies (of 1 total)
  • You’d have to hardcode at least one category id or slug in your custom query – the parent one – which would allow the client to create the sub-categories.

Viewing 1 replies (of 1 total)
  • The topic ‘dynamic category container’ is closed to new replies.