Skip to content

Tag: wordpress

One page to handle different URL with parameters

The solution is probably very simple, but still, I am struggling to understand how to make it work. We are preparing for the new school year, and of course, we’re required to make things work remotely. We will have a bunch of educational videos posted on Youtube, and an external Windows app will make su…

date_i18n function shows today’s date instead of provided date

I’m triying to display the a span of dates from starting date to ending date in WordPress in a custom snippet to list events on our website. There are two custom fields relevant for this problem: event_date: shows the starting date of the event (using date picker) event_date_end: shows the ending date o…

PHP condition with HTML/PHP putput

I running WordPress site and I want to show something only if post format is quote. I have following code but it give fatal error: Answer It looks like you have a syntax error in your code. Try simplifying your code as follows: If you still get the Fatal error, share the error with us. It will help point us

How do I display 3 recent posts in footer with Timber?

So, I am beating my head over this for 2 days now. How do I display 3 recent posts in footer using Timber and Twig? I am using a starter theme from Timber. What I did inside my footer.php file: And inside my footer.twig I tried displaying them: Now the problem is it displays nothing. If I replace featured wit…