Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 45602
2 votes
0 answers
466 views

How to show recent and upcoming birthdays using meta_query

I have a date of birth user field, I am trying to show recent (past 7 days) and upcoming (next 7 days) birthdays. … I have the below but it is not working because the years in the date of births are different to this current year $today = date( 'Y-m-d' ); $date_add_two_days = date_create(); date_add($date_add_two_days …
user1280853's user avatar
1 vote

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

Ok the problem was with using 'year' as the argument name, if I changed it to something else such as 'y' it seems to work.
user1280853's user avatar
0 votes
1 answer
763 views

Using WP meta query to show custom post types by a start and finish date

If an event spans over two different months it is only appearing in the month of the start date. I'm stuck on how to show it in the month of the finish date as well. … For example, if I have an event with a start date of 19/03/2014 and a finish date of 19/04/2013 it should appear in both the month of March and April. …
user1280853's user avatar
0 votes
1 answer
79 views

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

a custom post type): $events_month = sanitize_text_field($_GET["month"]); $events_year = sanitize_text_field($_GET["year"]); if (empty($events_month) || empty($events_year)) { $events_month = date … ('F'); $events_year = date('Y'); } $ts = strtotime("$events_month $events_year"); $month_start_date = date('Ym01', $ts); $month_end_date = date('Ymt', $ts); $args = array( 'post_type' => 'events …
user1280853's user avatar