• Resolved Stagger Lee

    (@stagger-lee)


    Never got activation mail link at Pods suppport forum. I will ask it here.

    I managed to work very well with relationship field. But for some reason i cannot find clear documentation how to work better with custom taxonomy/terms Pods makes.
    For this project right now relation field is enough, but I am looking for more better work with taxonomy, for future use and for easier categorizing, showing data everywhere in WP wensite.

    For instance if I would make alphabetical index, search functions, it is better to work directly with WP logic and taxonomies, than with Pods relationship field.

    As title says it is about Frontier templating and Magic Tags. I would like to know if it is possible, before I throw them away and use clean PHP code templates.

    I make Team/Staff with Pods. All is easy, show whatever Item (Member) data you want, how do you want.
    But cannot manage to have shortcode in Page calls items only from one taxonomy term.

    I guess it is not possible directly in Frontier template, because all this is only one loop. Unless maybe as separate loops with [before] and [after], to strictly separate them ?

    As i see it i have two possible ways how to interrupt loop and separate Items by taxonomy term (category). Directly in Frontier template, or in the shortcode in Page.

    Tried all tips i found on support forum and Google and didnt managed it. Have even problem to raw display of terms associated with Item. Maybe some core code changed in last January update, tried all i found other people say it worked for them. Best i could get is display of only one, first alphabetically associated term.

    To make it very short. I am very specific interrested in this.
    – Have on same Page several shortcodes (or in the same Frontier template) members/Staff separated by taxonomy terms.
    (say Departments as Pods custom taxonomy connected to this Pods custom type).

    Problem i have with relationship field is that it does update values only in other Pod, not in taxonomy Pods makes. So if i use this field all works OK for this particular Pods and project, but WP is not aware all those Items belong to specific terms and it makes problems for future uses. (widgets, select filters, etc…etc)
    WP only knows Items dont use terms, non checked, zero (0) in database.

    Hope it is not explained in complicated way.
    So, relationship field i use only to check some terms. I would like to skip it at all if i can check terms directly in metabox.

    https://wordpress.org/plugins/pods/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Howdy,

    This blog post (if you scroll down): http://pods.io/tutorials/creating-pods-plugins/using-pods-display/, does explain taxonomy templates in a nutshell, but not sure that’s what you’re totally looking for, so I would consider at this point creating WordPress templates instead.

    Thread Starter Stagger Lee

    (@stagger-lee)

    Thanks Vimal.

    So, i managed to display associated terms (all of them). One step in right direction to ditch relationship field and use only taxonomies and terms.

    I tried with name “groups” but slug was “group”. Stupid miss by me, very stupid.

    <?php $group_terms= the_terms($obj->id(), 'group'); ?>

    Thread Starter Stagger Lee

    (@stagger-lee)

    Well, maybe same hair pulling problem i had with shortcodes. Nothing i tried worked, and spitted errors. I will try now with “group” instead of “groups”.

    Thread Starter Stagger Lee

    (@stagger-lee)

    So, it is working now.
    Man what a stupid miss by me. I wrote a novel about it, just because of one extra character, “groups” vs “group”.

    Closed and resolved.

    For all future readers. Dont read taxonomy name from backend admin menu, but from URL when you open taxonomy.

    Shortcode for Page:

    [pods name="member" where="group.name = 'bass'" template="Members Template"]

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Frontier template – taxonomy’ is closed to new replies.