Skip Navigation

[Résolu] Clickable custom fields (Check Boxes, radio button, select)

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: The issue here was that the user wanted to have his checkbox values clickable and when you click on those values it takes you to a page that lists all the posts with the same option selected.

Solution:

Unfortunately this is not possible and I would recommend the use of taxonomies as taxonomies are able to do this well.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 12 réponses, has 2 voix.

Last updated by ErdemD1542 Il y a 3 années et 7 mois.

Assigned support staff: Shane.

Auteur
Publications
#620458
A0.png
A3.png
a1.png
a2.png
A0.png
A3.png
a2.png
a1.png

I am trying to:

I'm trying to make clickable custom fields like taxonomies.
For Example:Result of design post types which have android features when user click android text.

I have post types(name:design). Design post type have checkboxes and raido buttons.

I'm gonna use view plugin for result. It'll be grateful if you have other advices or option of toolset which I don't know yet.

What I tried:
I tried "a href " option on selected values. But it didn't work. I tried view loop wizard with many combinations but I couldn't get any result but simple text results .

Checkboxes could be replaced with taxonomy option but I also need clickable views of radio option and select fields etc.

What I need:
How can I make clickable custom fields that shows the design posts which have same features.

Thanks

#620626

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erdem,

Thank you for contacting our support forum.

When you click on these select values what should happen ? Is it that if I click windows it should take me to a page that lists all the posts that have windows selected?

Please let me know.
Thanks,
Shane

#620691

Hi Shane,
Yes , It will take you a page that lists all the posts that have windows selected. Thanks for attention.
How can I make it does work ?

#620692

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erden,

This is exactly what a taxonomy does. I would recommend the use of taxonomies instead of custom fields. Taxonomies have archives and when you click their links it takes you to the respective archive where you can see posts in that category.

Is there any reason why you don't want to use or can't use taxonomies?

Please let me know.
Thanks,
Shane

#620697

Hi Shane,
I have around 30 fields group. I've read more taxonomies make website slower.I don't know it's true or not. Is it right?

The main reason is ;
Some of field groups (fields shouldn't be seperated) are on cred forms and some of them has conditional options. And Conditional Group option on cred plugin only for fields not for taxonomies.

Thanks

#620703

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erdem,

I see so you have quite a large number of items pre-existing.

I did a little experiment and it seems I was able to get it to work, not perfect but it works.

So I added this as my value for one of my radio options value.
<a href=sample-page/>TEST</a>

Then I displayed the output by doing this [types field="test-radio" output='raw'][/types] using the output='raw' parameter so it gives me the value.

It should be noted that this will only work if the pages exist that you are linking to. I would recommend creating a page for each of the options and create and add a view . Each page will have a view that is pre-filtered for the category that is clicked on.

Please let me know if this helps or if you're unsure of anything.

Thanks,
Shane

#620727

Hi Shane,
So every page for option will have their own views that what I have to make individual views for each fields.
There will be around 100 views for 30 groups of fields... Does it make web site slower or not ?
Is this your your advice or is it what I have to do ? I wonder If you advice me to convert all fields to taxonomy ?
Which is better for light server load and a faster website? Taxonomies or field with link(what I pefered)

Thanks

#620739

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erdem,

You can actually use a single view and filter the view dynamically.

If you setup an example in the checkbox field I can create an example view to show this dynamic view filter. Our Views can be filtered using url parameters.

Thanks,
Shane

#620769

Ok,How can I send you wp admin details ?

#620877

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erdem,

I've enabled the private fields for you so that you can provide me with access.

Thanks,
Shane

#620930

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Erdem,

I have some bad news.

So this actually isn't possible. The reason is because when filtering the view we would need to compare it using the value of the field.

If we set the value of the field as a clickable anchor tag then we wouldn't be able to run the query to select all the items that are in such a category.

Let me know if you understand what i'm saying as to why it wouldn't be possible.

Thanks,
Shane

#620938

OK Shane, I have to continue with your advice if it's not prossible.
So one more question.I can make some fields shown or hidden according to option selected above of cred forms.
How can I make a search view according to parameters. For example a fields group will be shown according to taxonnomy selected.Then other fields will be shown according to previous option selected.
You may see fields are not shown even taxonomy selected at "A Test for view Search" page
Is there any documentation with toolset without PHP coding
I couldn't find a document or missed something.

Thanks

#621717

At the end, Thanks