pedromfm
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Remove query var from taxonomyThank You, @keraweb.
I got caught in work – thank you for closing the topic and the helpful answers.Have a nice day!
Cheers, PedroForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Conditional Logic for FieldsSee the first line in the docs! “This feature is available in Pods 3.0+”
Sorry @keraweb – I missed that!
Thank you for the info.
Do you think I could update my PODs to this RC version?
The website will be live in a couple weeks but with this update I would get some of those awesome features.
Cheers!Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Remove query var from taxonomy@keraweb I’m sorry I took so long to get back on this:
Sadly, clearing the PODs cache did not correct the issue.
The project is so near to being concluded that I might just commit to the alternative solution I have. Unless there’s an “easy” fix, I’m a bit scared of messing around too much with trial and error… and being forced to start over.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] ORDERBY is ordering items wrongThank You, @keraweb ! I’ve just landed on a solution – just before I got the notification of your reply.
The code I used was (maybe it can be useful to others):
[pods name="places" template="List Places Cards" orderby="CAST(tours_total.meta_value AS SIGNED) DESC" limit="99" ]
in my use case I probably should be using “AS UNSIGNED” since I’m only dealing with positive numbers, but whatever.
It’s still kinda weird since numeric ordering is fairly common and it surprised me that it required such a complex expression.
(yes – I am a WP / PHP noob in case you’re wondering)
- This reply was modified 1 year, 11 months ago by pedromfm.
Actually, I was about to downgrade the WP – my initial suspect was the latest upgrade – but I ended up leaving it at 6.2. I guess it has nothing to do with WP.
It’s not the first time I see this – and I’m inclined to believe it’s something related to DIVI but I can’t be sure, nor it makes much sense.
I have other websites using PODs – and I updated to 6.2 one of those today just to see if the problem would appear – but no. It’s working without issues. This one uses Elementor Pro and the plugin set is not very different from the problematic website. I will let you know if I find some more relevant information.
I cannot confirm if it’s related to DIVI or not since I only have that site using this builder. Maybe there are some other DIVI users that could bring some light to this question?Hi Scott,
After trial and error, I discovered it’s some conflict with either DIVI or a plugin. I updated everything to the latest version and it’s back to normal.
I am sorry for taking your valuable time.
Thank you.
it may be easiest to use two fields for this approach
Yes, it was an option that crossed my mind.
Amazing suggestions.
Thank you for your support, Paul.
I’m closing this – your answers were more than helpful.Hi Paul. Thank you so much for the reply.
One extra question – if I use your code, it means that every time I pick that field name on DIVI it will only display the thumbnail image (or the image size defined in that function).
Is there a way it could use multiple image sizes?
Or should I choose a bigger size so it fits most cases? – it’s not good for optimization.I’m asking this because sometimes I use the image as the background and it needs to be large.
Again, thank you so much.
Pedro
- This reply was modified 2 years, 4 months ago by pedromfm.