smdever
Forum Replies Created
-
Just to build on this question, how do I populate the first dropdown option with the first taxonomy tag?
As a concrete example, I have a dropdown for “City” taxonomy with 2 cities in it, Bangkok and Chiang Mai. I’d like Bangkok to appear as the default selected option.
Hmm, none of these are working for me. I’ll keep digging to find out if it’s just a problem at my end or what…
Hi there, sorry to revisit this, but this string
is_single()&&(get_post_type()==’pv_listing’)
was working fine for me until just recently when I realized that the appropriate widgets were no longer displaying on singular posts of that post type. Have not downloaded any weird plugins since, and Widget Logic is working as usual otherwise. Any ideas why this might be? I realize this may not be related to the plugin at all, but not sure where else to ask this question
?? thanks
duh, I now realize that the example I used was the one you intended, but I took you literally and wrote out “taxonomy_” before the taxonomy name. I am clearly new to this!
Hi, thanks again for your quick response!
I downloaded the development version you linked to above – for some reason, the example you gave me above didn’t work, but this modification did:
is_multitax( array( 'a', 'b') )
so I am very happy. Thank you!
Yay! Works perfectly.
Now I just have to get my Widget Logic to play nicely with the QMT function and display the widgets on the search result pages… it doesn’t want to, even when I specify is_tax(A) or is_tax(A)&&is_tax(B)…. but THAT is a topic for another forum.
Thanks again for all your help!
Well, that fixes the the problem with searching, but now “reset” sends me back to my home page again.
Did I do replace the correct string of code? The full line of text I used was:
add_filter( 'qmt_reset_url', 'my_qmt_base_url' );
Look, you’ve been so helpful, but if answering these questions isn’t giving you useful feedback as you develop the plugin, please don’t worry about it. I know the plugin’s still in development, and I can do my best to be patient until its ready ?? Just asking in case it’s an easy one for you to answer and/or gives you useful feedback.
Thanks so much for your help. I’ve ended up using your suggestion to get the single posts, and then am using is_tax for the archive pages. It may be inelegant, but at least it works for this particular case:
is_tax(‘store’)||is_single()&&(get_post_type()==’listing’)
You’re right, archive for custom post type is totally stupid, since it’s a taxonomy and taxonomies can be for different post types. I’m very new to this, as you can tell.
Thanks again!
Hmm. Both snippets worked fine in terms of resetting the page to where I wanted it to go.
However, when I try to submit the query, I get the 404 Not Found error message.
When I remove the snippet, the query function works fine again.
Any ideas? Sorry to be such a pest about this, and thanks so much for all the help you’ve already given.
Thank you so much for the speedy response, worked like a charm.
I hope I’m not being too greedy, but… here’s one more…
Actually, I run two different searches using your widget on two different pages “Events” and “Directory”.
Is there any way in this version to customize the reset per widget, or per custom post type? So when I run a search on the Events page (which searches custom post type = Events), it resets to the Event page? And when I run a search on “Directory” (searching custom post type = Listing), it resets to the Directory page?