Custom filters based on category`s CPT

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 1 week, 3 days ago.

  • Author
    Posts
  • #496780

    Piotr Musiaka
    Full 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: 18389

    A valid licence is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid licence for this product.

    Thanks, Team GeoDirectory!

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

You must be logged in to reply to this topic.