flexjoly
Forum Replies Created
-
With AI I changed the where
ewtag.term_id!=32 to:NOT EXISTS (SELECT 1
FROMwp_term_relationshipsAStrJOINwp_term_taxonomyAStt
ONtt.taxonomy= 'ewtag'
ANDtt.term_taxonomy_id=tr.term_taxonomy_id
ANDtt.term_id= 32
WHERErel_tag_excl.object_id=t.ID)Even more complex, but it works!! 🙂
If you want to use the slug, an extra join is needed:
NOT EXISTS ( SELECT 1
FROMwp_term_relationshipsAStr
JOINwp_term_taxonomyAStt
ONtt.taxonomy= 'ewtag'
ANDtt.term_taxonomy_id=tr.term_taxonomy_id
JOINwp_termsAStm
ONtm.term_id=tt.term_id
ANDtm.slug= 'myslug'
WHEREtr.object_id=t.ID)It can also be done with an extra join, but I choose this one, for then it only changes the where and everything is in one place in the query.
Hope this can help someone else too.
I still hope is a better or easier solution 😉Hi,
Thanks for getting back at me!!
It is a new website. I had only a few plugins running: wp_data_access, wpcode and maybe nested pages, besides pods. No extra wp-caching.
In wpcode just a little css, js and php, but nothing related to pagination.
I did not consider any other caching or that it could be browser related. And I was a little impatient and since the site was very new I asked my webhoster (stephson) to re-install everything.
I really thought Pods had stored this somewhere, sorry. And I really do not want to try it again on my site. But I am happy to recreate the problem on a demo site with pods if pods has (or can facilitate) one.
Thanks so far!- This reply was modified 1 year, 2 months ago by flexjoly.
What is the name of the bidirectional field in the user-object?
You can use that to link back to the job.
If the field is: user.linkedjob then
{@linkedjob.ID}
If you use pods template, it should also give you a list of possible fields/tags you can use. If you selected the pod that is used in the template.