You can’t use date()
with no parameters. See http://php.net/manual/en/function.date.php.
Try this for your meta_query
argument:
'meta_query' => array(
array(
'key' => '_gigswhen',
'value' => time()
'compare' => '<'
)
)
Related Posts:
- Use template_include with custom post types
- Get Posts in a Custom Post Type category
- Custom field values deleted when trashing custom post type
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- how can I create a calendar for a cpt, using get_calendar or other
- Custom Post Type Archives by Date with Custom Permalink
- Custom post type save_post action not firing
- Modify custom post type rewrite rules in a separate function
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Why is wp_is_post_revision always false?
- Change page /2 to /transcript with a Rewrite
- Limit the post for differents custom post type in the same wp_query
- Possible to combine two custom post types?
- Dynamic dropdown custom post list based on dropdown selection
- Changing ‘rewrite’ argument after custom post type is registered [duplicate]
- Excluding post type from WordPress link builder
- Multiple Content Block
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Thumbnails on next/previous links in custom post type single.php
- Create and edit posts from front end
- Allow Users Access to Custom Post Type Only
- How to get Custom Post ID by adding filter to child theme’s function
- Recommended custom post type structure for TV Schedule site?
- How to filter out post type meta?
- How to replace custom post type slug with an ACF value?
- Dynamically Create Custom Post Type According to Relationship Another Custom Post Type
- Fake mark a menu item as current_page_item/active in WordPress
- display span element if in certain post types
- How to detect filter in URL in Category page?
- How do I correct an incorrect permalink?
- Update permalinks when new category added to custom post type taxonomy
- What’s a better alternative to this code?
- Post form as custom post
- Loop custom taxonomy to get lists of cutom post types?
- Query & Order posts by custom fields
- Show a Category X’s custom post type on Category X archive page?
- How do I display content to users who are not logged in instead of 404 on Private custom posts?
- output custom post types on front-page.php
- Allow Static Page Load Dynamic Child Pages
- Structure of data : CPT + terms
- Disable saving posts as draft (make all posts mandatory regardless of the post status)
- Display post content with respect to its title?
- WP_Query orderby and tax_query
- Load Next Posts With AJAX not working with custom post type
- Configuring a meta query with multiple post types that have the same relationship on a single page
- What functions does WordPress use for filtering / sanitizing comments?
- Creating custom post type with custom taxonomy and custom fields programatically
- Showing only one category on portfolio page BUT filtering remaining categories with Isotope
- How to get only child terms from a custom taxonomy of current post type?
- wysiwyg editor don´t export paragraph
- How to see posts in taxonomy endpoint
- Graphql: Unable to query (where:{author}) for custom post type
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Auto post creation
- Unable to format dates to put in event calendar
- Cannot choose custom categories for custom post type in post editor
- posttype and custom fields on multisite
- Custom fields not showing in custom post type
- Arduous WordPress Custom Post Type Permalink Path
- Modifying rewrite rules to use /category//
- Custom post type archive – error in nav-menu-template.php
- Issue with Custom Post Type Tags
- Custom Post type Query by Taxonomy
- Order custom posts by taxonomy, then by meta_key
- Limiting actions only to edit.php page for specific custom post type
- Archive page of taxonomy returns a 404 error
- Multiple categories assigned to a single product breaking the breadcrumb
- redirect after submiting post for review
- i need to have a tab with gategory post
- Is there a way to display a custom post type menu item as “users” submenu?
- Custom post type specific item design
- How to output and alert message when updating a post
- Sql Update CPT from publish to draft and particular custom field
- wp_set_post_terms not updating with WP Cron Event
- Rewrite url for custom post type with specific url
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- Custom post type meta fields missing on save_post_type
- Help Adding filter to Add Media button for custom post type
- Limit posts per page depending on the size of a div?
- Custom Post Type with Custom Taxonomy in Bootstrap 4 Accordion
- Setting up a page to house certain types of posts
- How to display user-defined / custom post in wordpress?
- I want to create an archive and single page for a custom taxonomy for a custom post type
- How to set class to “current-page” on the currently viewed single post within a CPT
- Post search not looking at post title since 4.4.2 upgrade
- Can I override the permalink/slug on creation
- Rewrite Endpoint Url without ? before endpoint
- Is it possible to add query parameters on the archive page?
- Heirarchical URLs with CPT and custom taxonomy
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- Custom sortable pages on custom post type
- How do I add custom fields to posts without having to manually add everytime I post?
- How to change permalinks to taxonomy and post type’s posts
- Custom Catagory not found
- How to display custom post type ordered by a custom field date
- How can I list custom post by custom category?
- Custom Post-type not returning the right child_of
- Create custom post order (with custom post type meta)
- Single page for Custom Post Type not found
- Custom Post type easy way for editors