Custom filters based on category`s CPT

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #496780

    Piotr Musiaka
    Expired Member
    Post count: 18

    I know that this is not possible but 🙂

    I created for example 3 fields – 1 2 and 3 in one CPT.

    I have 3 categories:
    first
    second
    third

    I wanna to show custom field 1 only in first category details page, archive item listing page and add listing page etc.

    In details post page, archive item listing page i probably need to use php if else statements:

    Something like that

    if (first-cat == true){
    echo do_shortcode( ‘[gd_post_meta key=”first-filter”]’);
    }

    or

    <?php if (in_category( ‘first’ )) : ?>
    [gd_post_meta key=”first”]
    <?php endif; ?>

    How to make this work in GD?

    In add listing page i need probably use javascript like this:

    I have select field – categories.

    if option 3 (category 3 ) is selected (based on val or text)
    then show all divs with class = x3 🙂

    Please help me:)

    #496799

    Alex Rollin
    Moderator
    Post count: 27815

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket