The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
12 views

Cate Breadcrumb for custom_post_type in date format ( type>year>month>title)

<?php function the_breadcrumb() { global $post; echo '<ul id="breadcrumbs">'; if (!is_home()) { echo '<li><a href="'; echo get_option('home'); ...
0
votes
0answers
19 views

Update the published date of a post to custom field date

I'm not sure if this is possible with WordPress or not. I googled a bit and didn't found any answers. So I need to update the publish date of a custom post type with the custom field date I entered. ...
0
votes
1answer
32 views

Thirtieth century date for a post

I want to break the date mechanism in Wordpress. I need to have dates set in the 30 century, controlled through the regular post, but only for one category. To give an example I'd like a post dated ...
0
votes
1answer
30 views

WP Query Sort by meta value (date)

I have the following code where I want to sort by meta key "event_date" and only display posts after todays date and 3 weeks ahead. Somehow nothing happens, even when I'm stripping down the WP Query ...
0
votes
1answer
14 views

Organize content by month? SQL statement?

Using custom content types and custom fields with a pretty standard setup to post the content to the page. Where I'm having difficulty is trying to organize this content by date. I have a field ...
4
votes
1answer
59 views

How to put last edited entry on top of the blog-post list?

In the list of my blog posts, the "last published" entry is on top. I'd like to view the "last edited" entry on top of that list. I couldn't find a setting for that, so how can I realize it?
0
votes
1answer
52 views

Retrieving posts by their date and category

I'm trying to create a plugin for displaying post titles and dates (which will be displayed as links to those posts) of a specific date range and category. So far I have managed to get to display the ...
3
votes
3answers
219 views

Post doesn't show date if there's another post with the same date

I have custom post type "press." and made a page template the queries posts of that type. The posts are supposed to show their published date, but if there are more than one posts with the same date, ...
0
votes
2answers
47 views

Show single posts date, in a page of posts

In a page of posts, how do I show their date, instead of the page date? I have no php knowledge. Let's say I want to show the single posts date here, instead to the single posts title. <?php ...
0
votes
0answers
33 views

How to compare date in post meta value

I have some custom meta fields. Some are date fields but WordPress saves everything as a string, so how can I compare the dates? $meta_query_args = array( 'relation' => '', // Optional, ...
1
vote
1answer
39 views

Date query not inclusive despite parameter being true

I've set up a small test query to get some posts from October 1 to October 10. I published a post today ( October 10 ) and with the date query parameter of include set to true, I would have expected ...
0
votes
2answers
51 views

Individually styling date month year [closed]

I am using underscore_s barebone theme to build mine and came across this challenge that I would like to style date month and year separately with CSS and the code output puts them together. I dug ...
0
votes
1answer
19 views

Wordpress giving a 404 page when passing a year argument different than the current year

On this page you will see I'm listing events that fall in certain months: http://conciergemaps.ch/events/ This is on Wordpress, When you select a certain month and year it appends the URL with two ...
0
votes
0answers
18 views

Sorting events by meta date value after current date

I have custom post type "Events" and also have custom meta box date, in default mode its working and sorting events with published date, but i want changing events sort by custom date, i've added that ...
1
vote
2answers
61 views

Fetch posts from current week (Sunday to Saturday)

I'm trying to fetch posts from current week. <?php $args = array( 'date_query' => array( array( 'year' => date( 'Y' ), 'week' => ...
0
votes
2answers
52 views

How to display custom post type ordered by a custom field date

I have a custom post type for a timeline activities. each post of them has a custom field type of DATE. field name :activity-date I'm using TYPES plugin for Custom Post Type and Custom Fields I ...
0
votes
1answer
56 views

automatic send email at custom time

I want to send an automatic email every day at 10:00 I tried this code $timeN = date('H:i'); $timeS = date('10:00'); if ($timeS == $timeN) { $to = get_option('admin_email'); $nfrom = "my ...
0
votes
1answer
46 views

Permalinks using event date (year & month) instead of publication date

The site http://www.bikefun.org is live and working, but the permalinks are not quite right. It is an event calendar site. Events are stored as a custom post type "bf_events", with dates stored as ...
0
votes
0answers
52 views

Events filter using wpdb for queries

I'm a WordPress (PHP) developer, however I have not done a lot of complex MySQL queries. I am working on an events website and want to create filters: User should be able to filter events by the ...
0
votes
0answers
40 views

Year based WP Query

I am am having a strange issue, trying to get year based posts in wp_query, when i do directly, 'year' => '2014' it works fine, but i have the year stored in a variable, $year, then i do 'year' => ...
1
vote
1answer
144 views

Ordering by meta_value AND date NOT WORKING with wp_query

I want to select posts and custom post type with a specific meta value (mb_home!=0), of last week and ORDER them by mb_home. If they have the same mb_home value, I want them to be ordered by date. ...
0
votes
2answers
42 views

How can I only show a widget prior to a specific date?

I can't find a solution for this anywhere, so help is highly appreciated! The problem is, that my Dropbox account is losing aboz 48 GB's, so I had to remove my podcast episodes from there... because ...
0
votes
0answers
27 views

How to show wordpress “post published date” based on IP address

I am wondering how can my website have the post published date to visitors based on their geographic location, my site mostly based on Indian audience but if someone seeing from UK or US see some of ...
1
vote
0answers
42 views

301 Redirect for Non-Date Based URL's

I'm wanting to redirect posts in WordPress that do not have a date based permalink structure to those that do. For example: domain/aprils-obx-race-recap-gnarly to: ...
4
votes
1answer
66 views

Permitting Wordpress to accept dates outside of 1902-2038

I'm using Wordpress 3.9.2, MySQL 5.1.73, & PHP 5.3.27 to put together a history-based site. As is well-documented elsewhere (including many questions on StackExchange & WP forums over the ...
0
votes
1answer
48 views

Change custom post status to draft before today

I tried this code which I made but looks like I am not doing it correctly.. The main problem is my code fetches all posts ordered by meta value date, but I need to hide the posts from the date today ...
0
votes
1answer
40 views

Sort Posts By Custom Field Date?

I have the following code displaying posts from a custom post type. However, I need them displayed in date order from information put in a custom field, can this be done? I try this code :- $course ...
1
vote
1answer
42 views

Wordpress Sidebar menu for posts based on date - guidance needed

One of the issues I have with WordPress is knowing when (and when it is possible) to use the WordPress back end instead of coding my own solution from scratch. This question is based around this. ...
0
votes
1answer
18 views

Retrieve current and localized month

instead of writing array of months in desired language, and doing a function to replace date('m') with localized month... I believe there should be some fast and easy way to echo current month, after ...
0
votes
1answer
135 views

Display post from specific date

How do I display posts by a specific date? If it is 15 July today, it'll display posts from about two or three days ago, like the 12th of July's posts. And tomorrow it'll display the 13th of July's ...
0
votes
1answer
31 views

Thumbnail gallery by date and taxonomy

I'm having problem to create something like image gallery. What I wanna do is, in the home page sidebar, there will be a box named photo gallery which will contain 2 or 4 images thumbnail (just like ...
0
votes
0answers
31 views

Countdown to post date tag function?

I made an events post type and I wanna make countdown to post date, for example: Let's say the post is due 5 days later so it writes in the post '5 days remaining' Any suggestions?
0
votes
0answers
43 views

wp_next_scheduled() with jQuery Countdown

I'm working with the jQuery Countdown timer for the first time and I wanted to integrate it into my Wordpress site to display the time until the next scheduled cron event. When the countdown has ...
1
vote
1answer
63 views

Use the same date-based permalink structure for all post types

Is there a way to use exactly the same date-based permalink structure for all (non-hierachical) post types on a site, including posts and custom post types? I'd like all post types to have the format ...
0
votes
2answers
242 views

How to show monthly archive posts?

my custom archives page is : <?php get_header(); print ('<div class="row">'); $archi = wp_get_archives('echo=0'); $archi = explode( '</li>' , $archi ); $archi_count = ...
0
votes
2answers
49 views

Change the date and time in wordpress

Is there a way to change the date and time in WordPress, not the timezone, but the date and time all together, like make it 03-21-85 11:11 PM. I want all dates and times to be changed, not just to one ...
0
votes
0answers
79 views

Date Archive template per category

I have the following template structure currently: category-news.php category-magazine.php category-filmography.php Each page has a different sidebar, and each page has an archive widget in that ...
0
votes
2answers
513 views

Query between dates using Date Picker fields

I'm looking to replace an events plugin that i have on my website currently. We realize we don't need a full blown calendar and things like that, we just need to be able to enter in Events with a ...
1
vote
3answers
72 views

Taxonomy and Date in same query?

Is is possible to combine a tax_query with a date_query in the most recent Wordpress? Here's my attempt to do so: $args = array( 'post_type' => 'job', 'tax_query' => array( array( ...
0
votes
0answers
57 views

Use custom field “date” compared to today's date to display & order post list

I am at a loss here. I have a custom meta field blser_date where the client can use the date picker. The meta field is setup in a meta box array (this may be an issue b/c of the key?) Here is the full ...
0
votes
1answer
51 views

WP_Query Date Filtering Inclusive Being Ignored

I'm currently working on a plugin that contains a shortcode which allows users to filter a custom post type by date. They could choose "Date From", "Date To", and "Date From with Date To". When ...
0
votes
1answer
138 views

Retrieve taxonomy terms in order of their post's date?

I'm building out a custom taxonomy archive page that needs to list terms in order by their associated post's post_date. I wrote this, it's working, but I hate resorting to custom SQL: global $wpdb; ...
0
votes
1answer
151 views

Display Current Post's Position in Custom Taxonomy

I'm using custom post types and taxonomies to organize posts into different series where the order of the posts is important (travel narratives). My plan for the single-{custom-post-type}.php was to ...
1
vote
0answers
135 views

ACF Plugin - Dropdown menu of Posts based on Date Picker range [closed]

I am building a website with a Custom Post Type, "Events". I would like to use the Advanced Custom Fields (ACF) Plugin to provide custom fields for this post type, 2 of which will be ACF Date Picker ...
1
vote
1answer
82 views

Get list of years when posts have been published

I want to create a list of posts from a Custom Post Type and add some filters the user can click to filter the list. I added filters for all the categories by using the get_terms() function. Now I ...
0
votes
0answers
20 views

Post Query Glitch Causing First Post to be Out of Order

My problem is that there is a stubborn post at the top of the set of returned posts that somehow isn't sorted with the rest of them. Despite upgrading to 3.9, this issue still persists. For ...
0
votes
3answers
80 views

Show different time stamp based on time

What's the best way to show a time stamp based on different times? For example: if a post is under 24 hours, show %% mins/hours ago. If a post is over 24 hours, show month/day/time. If a post if over ...
0
votes
1answer
361 views

Ordering custom posts by meta field date

I've tried every combination of examples here on the boards and nothing seems to get me what I need. I have an events post type with multiple fields in a custom meta box, one of which is a date field ...
1
vote
1answer
236 views

What's wrong with my date_query?

It's WordPress 3.9 "Smith". I'm trying to implement a new Archive page as per the suggestion of @Milo. $categories = get_categories( $cat_args ); //it's NOT important for the Q, as it's fetching ...
0
votes
0answers
114 views

Display “Today” Instead of Date for Pubslished Posts

I have a list of 'post_status'' => 'future' which are published at certain dates throughout the year. These posts are custom posts whith Advanced Custom Fields. Since a couple of days I'm trying ...