I got posts that have starting date as a custom field value. I’m displaying few of those posts in my sidebar in ascending order so that the post with closest starting date is shown first. This is what I have and it works great: <?php query_posts(‘&post_type=events&posts_per_page=5&meta_key=start_date&orderby=meta_value&order=asc’); ?><?php while ( have_posts() ) : the_post(); ?><li><span class=”eventtext”><?php […]
Is there any way to display a user’s (registered) registration date on the comment. Lets say i have a written an article, registered users A, B, C and D left a comment on my article. I can display comment date, commenter’s name and email by default . I want to display the commenter’s registration date […]
I want to modify the date display of the post entries from current format: April 26, 2013 to this: 04/26/2013 Where in the code can I make this change? Thank you in advance!
I’m trying to make a couple of Page Templates for different Pages that should act as an archive to display posts (a Custom Post Type actually) in a certain date range. The website it concerns is http://memstories.com and the CPT is “Events”. I already found some mentions of a thread on WP Support (https://wordpress.org/support/topic/show-the-posts-published-before-a-specific-date?replies=2#post-1066144), but […]
I need to edit the date of several posts, change it to a specific date, all posts should have the same date. How can I achieve this? Is there any fuction to add to the functions.php to add this feature? I cant find a solution.
So here is my code to display the post created date: $date_create = ‘<div class=”mydate-created”>’; $date_create .= get_the_date(”,$product->id); $date_create .='</div>’; $output .= ‘</div>’; $output .= ‘<div class=”mydate-created”>’; $output .= get_the_date(”,$product->id); $output .= ‘</div>’; It displays the date of post created as the following “2015-02-23” I know there is setting in the backend to change the […]
I’m looking forward to display, somewhere in the homepage of a WP site, a legend saying: Last updated: XX/XX by grabbing the date from the most recent post, but not showing any of its content, just the date. Is there any quick way to do this?
I’m trying to figure out how to do this. I have many posts. I want it so that when someone pulls up the site, the front page shows all the posts that were done on the same month and day — but disregards the year. So, if I were to pull up the website on […]
I’d like to know if it’s possible to display a page only for users that registered before a specific date. Example : I want to display a page (or its content) only for users registered before 1st February 2016.
I’m working on an email system and they want it automated to send out emails every second thursday of the month. I’ve got the PHP sorted out and ready to fire a callback to send the emails, but I’m a complete newbie when it comes to cron and scheduling events. Essentially, I have this: echo […]