• In my website I have created a url link that passes search parameters to a ‘Geo My WordPress” search form.

    Within that link I have added the following shortcode to get the taxonomy-term id (or ids) of the current post:
    [taxonomy activity-type field=id]

    This works perfectly except when the post has 2 or more taxonomy terms. In this case the url is generated using a comma-space separator as follows:
    120, 34
    …. Geo My WP only recognizes the first id (120).

    To get it to recognize the second id, I need to customise the separator to be:
    &tax[activity-type][1]=

    So, how do I modify the separator to be ‘&tax[activity-type][1]=’ ?

    Ideally, if there are 3 Ids the second separtor must be &tax[activity-type][2]= etc. etc., but I’ll be more than happy just to get the first separator and only pass two terms to Geo My WP.

  • The topic ‘Multiple taxonomy terms – Separator’ is closed to new replies.