Can you please state the right direction of making the realization of such an idea on pages of my dev site - hidden link (please confirm the exception of https... I'll fix it later))
I have News (like standard WP Posts, respective taxonomy category ID = 4) and CPT Events (respective taxonomy category id = 5) posts on it. Also I have tags taxonomy to classify the "organizer" of Event (ID's = 11 or 12).
On every page I need to insert PostForm (id992) "Online Registration". I need to prefill "Type of registration" field in this PostForm according to the following logic:
If Taxonomy category ID = 4 and Taxonomy category ID = 11 then I need to assign respective value e.g. '7' from 'sht-cf-type' field from original post (see screen 1)
If Taxonomy category ID = 5 and Taxonomy category ID = 12 then I need to assign respective value e.g. '3' from 'sht-cf-type' field from original post ...
and so on...
the list of values can be seen on screen 2.
<b>Please notify what is the best way of doing this?</b>
Hello. Thank you for contacting the Toolset support.
Well - I would like to know from where the taxonomy/category ID we can get?
Do you mean Post is assigned with such category and if post have been assigned with the combination of such category you want to prefill the specific ID from field 'sht-cf-type'?
Well - could you please share access details so I can review your current setup that will help me to guide you in right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Well - you need a custom shortcode to check such combination of your category and tag.
For example - I've added following custom shortcode to your current theme's functions.php file, as you can see I've added couple of combination for which you shared the information. Feel free to customize it as per your need and add more combinations.:
Dear Minesh,
See on screen 2 attached to original post I had Toolset Custom Field [sht-cf-type]. Array of 1...n values with text descriptions. How can I also include it as 3rd parameter (sorry I 'm very weak in wp - coding)... can you please also help to add line in input parameters to extend my "derivation" logic.
' $sht_id = [which is equal to custom field [sht-cf-type] which I will assign to every post / page manually (see screen3) '
P.s. It would be great to return TEXT values of [sht-cf-type] and put it in target field [cred_field field='tscf-topic-mirror' value='[topic_mirror_id]' urlparam='' class='form-control' output='bootstrap']