berttervoert
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] how to let query sort on two fields?After some further reading I found the following piece of code which should work for titles with numbers greater then 9:
<span style="color: #a31515;">'CAST( datum_geschreven.meta_value AS DATE ) DESC, CAST( t.post_title AS INT) DESC'</span><span style="color: #000000;">,</span>Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] how to let query sort on two fields?Hi,
thank you for your answers. I managed to get it working with the following piece of code:
'orderby' => 'CAST( datum_geschreven.meta_value AS DATE ) DESC, t.post_title ASC',
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] same settings, different date formatHi Jory,
I use pods functions in custom php templates. I had found a work-around online to display the date as I wanted, but then yesterday I discovered that I overlooked the extra settings as you select the date-field while creating your custom pod. So now the date gets displayed correct even without the work-around.
Thank you for your reply. This topic may be closed.cheers, Bert
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] same settings, different date formatI’m looking online for possible answers and found the suggestion to use the following line of code:
var_dump( locale() );
This gives the result: string ‘nl_NL’ (length=5)
but the date output is in English format.Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] same settings, different date formatIt is both on the edit screen and on the output on the front of the site and on the overview page for all the posts of the pod (in admin).
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] show most recent entries of podHi Jory,
Thanks for your answer, I already switched to the pods method and got things working.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] show most recent entries of podadditional question:
if I have to use the other option, how do I sort the pods by the added field datum?PS. I noticed there are a few errors in the code part above, but I can’t seem to edit that post anymore. I do have that part working correctly (minus the ‘strofe’ part).
I have found out that it is nit so much a pods problem, as it is my not yet understanding the new block editor in wordpress. I haven’t worked with wordpress for a while and I find it quite a bit of getting used to the new block editor. For now I think I can get things going.
Thanks for your quick reaction.
Hi,
I managed to solve the problem with the people of the lightbox plugin. The selector for the lightbox was not set correctly. It selected the div in which the image was placed and that’s why it didn’t find the image url when opening the lightbox. Just adding img to the selector made everything work perfectly.
selector was:wdtv_lgthbx_img
and now is:wdtv_lghtbx_img img
Thank you for your time and effort!
Bert.Forum: Plugins
In reply to: [Ultimate Lightbox] image shows as broken in lightboxHi,
I managed to solve the problem. I used the following as selector:
wdtv_lghtbx_img
which was the containing div in which the image is placed. I just added img to the selector:wdtv_lghtbx_img img
and now all works as intended.Thanks very much for your help!
I’m using SiteOrigin pagebuilder for the overall page layout. For this particular part, I created a row with two columns and each column has a widget in it called ‘custom html’. In this widget I placed the following shortcode:
[pods name="club_kleding" template="clubkleding" where="id=345"]
The html for the template ‘clubkleding’ is the part you find in my initial post above. Maybe the markup from the pagebuilder is what’s confusing you. I hope you have sufficiant information, if not please let me know what more you need exactly.
Thanks in advance,
Bert.Forum: Plugins
In reply to: [Ultimate Lightbox] image shows as broken in lightboxHi,
I use the class option to make the lightbox work. In my opinion it should be something with the image url since the lightbox opens on clicking the image. You get to see the lightbox background and cotrols so I would say the configuration to make use of the lightbox is ok.
There is one thing I need to try, but I don’t have much time today. Do you know wether it makes any difference if you upload the images to be used with the lightbox or you select them from the media library? That might be the only difference between the localhost site and the online site.
Thanks so far,
Bert.Forum: Plugins
In reply to: [Ultimate Lightbox] image shows as broken in lightboxI didn’t migrate the localhost site but recreated the lightbox part for the online site. So the information about the images comes from the right pod. I did have a similar problem on the localhost site, but was able to fix this. I tried both versions I had on my localhost site, but neither works. The source of the image shows indead as undefined.
For test purpose I tried your suggestion for the wordpress gallery, and then it works correctly. (this page works )
if you need further information, I will be happy to supply this.
Thanks,
Bert.I’ll start a new thread for the link question and set this one as resolved.
I think I solved the image part, using the following line of code:
$wdtv_kaartje = get_post_meta( $wdtv_id, 'routekaart._src', true );
But how to get the link to the related post is still a problem to me, so if you could help me with that, I would be gratefull.
Bert