• It would make semi-intelligent displays so much easier, more flexible and less prone to breakage. Right now, there’s only the slug, title and description to check against – all of which could be subject to change.

Viewing 5 replies - 31 through 35 (of 35 total)
  • Unfortunately, I don’t that the solution I posted will work for your instance. To link the call to the category (wp_list_categories or the_category) the Headspace meta code would have to be integrated also.

    Are you utilising your category descriptions at all? You could try that? (ie, you category name is “Smith” and the description is just “joe” then call using :

    <?php echo category_description( $category ); ?>

    Otherwise, author pages might work better for you?

    What if I want to call a custom field value? for example I have a custom field called genre and the value is romance. I want to list all the categories that contain the word romance. how can I do this?

    As far as I can tell, with the current WP, that’s not going to be possible.

    Here’s a few ways that I would do it:

    1. Why have a category called “Genre” ? Just have “Romance” as your category. Easy. You could set up a page called “Genre” if you wanted, then link posts there with a plugin like this: https://www.ads-software.com/extend/plugins/list-category-posts/

    2. Have categories called “Genre” and sub-categories “Romance”, etc. Then call your sub-categories.

    3. Make “Genre” your category and tag posts with “Romance”. Then call the tag.

    None of those options do what I want to do. Here’s a site with genres https://www.animelime.com/?genre=baseball

    It lists all the categories that contains the genre baseball

    No, then this isn’t going to help you. I’d email that site. I’ve never seen WP output something like ?genre=baseball before!

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Request: Custom fields for categories’ is closed to new replies.