Custom filters based on category`s CPT

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

  • Author
  • #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:

    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”]’);


    <?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:)


    Alex Rollin
    Post count: 21483

    A valid licence is required to view this reply.

    You may need to login


    Buy either a Membership or valid licence for this product.

    Thanks, Team GeoDirectory!

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

The topic ‘Custom filters based on category`s CPT’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.