post_date_gmt in widget code
-
I have been trying to set up a custom widget which displays all posts from a certain category from today and into the future. This means, post from yesterday and older will not be displayed. I have managed to setup a page template that works fine, but now I also need a widget with the same code..
Can someone help me with setting up the code so that it will work in a Widget? I have tried, but right now I’m getting an error message when activating the widget under plugins in the WordPress admin. It seems the array ‘post_date_gmt’ is giving problems as it is not recognized as a valid string.
Code of page template:
[Code moderated as per the Forum Rules. Please use the pastebin]Code of widget:
[Code moderated.]
- The topic ‘post_date_gmt in widget code’ is closed to new replies.