How to write my query in My Custom Functions ?
-
Hi!
I should start by saying I was a begginer like 4 days ago and throw myself into creating a website for my band. Althow I have quite a success with everything I created with this website up to now, I just cannot figure how to write my query filter so that the event on homepage (using Elementor pro AE-Post bloc) show only the upcoming events.
After much research, I installed the My Custom Functions plugin and tryied this:
// Query filter for AE – Post Blocs; to show only upcoming events
$args = array(
‘post_type’ => ‘shows’,
‘meta_query’ => array(
array(
‘key’ => ‘start_date’,
‘value’ => date(“dmY”),
‘compare’ => ‘>=’,
‘type’ => ‘DATE’
)
)
);
query_posts( $args );I know it’s all wrong, but cannot fix it for the life of me…
I would much appreciate any help.
The page I need help with: [log in to see the link]
- The topic ‘How to write my query in My Custom Functions ?’ is closed to new replies.