Try to replace the following:
<?php $sectyp = array(
'meta_query' => array(
array(
'key' => 'section_type', // selecting the section type "Normal" or "Parallax"
'value' => 'Parallax'
),
),
); ?>
with
<?php $sectyp = get_post_meta(get_the_ID(), 'section_type', true); ?>
and replace
<?php if($sectyp) { ?>
with
<?php if($sectyp == "Parallax") { ?>
Related Posts:
- Trying to list out child pages with WP_Query
- ACF – Get lowest & highest value from field
- Multiple taxonomy And acf filter group by
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- Excluding pages in WP_query using ACF
- Stuck in the query loop
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- If have posts a week old, display, else display a different loop
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Create a loop on my pages with new “WP_Query”
- Expecting statement error from php loop using ACF plugin
- Display specific page (that is child) content on parent page
- Determine if ID is page or post and query the ID
- Custom query does not find pages
- How to use custom page for all posts with custom url, call another directory?
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- Populate select list with meta values from all posts of a Custom Post Type
- ACF: How can I publish values of ACF fields in a loop while using wp_query?
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- Retrieving category pages from subcategory returns empty sets
- Creating array to compare custom field values
- Output ACF field dynamicaly within a taxonomy loop [closed]
- WP_query shortcode inside acf Repeater breaks the repeater loop
- filter wp_query result with custom field values
- Posts in loop all show the same author when there are many authors
- Exclude recently updated post from custom WP_Query using multiple loops
- get_posts output always same post
- Multiple Rows in a using wp_query
- How to use WP_Query() on single.php?
- sort and display posts by custom field (wp-query and the loop))
- How to create custom query by keyword in post title?
- difference between querying database and using the loop
- WP_Query – Adding “offset” posts to the end of the loop
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- Conditional operator OR not working with custom fields
- Merge 2 custom post type posts and taxonomy terms and sort ascending
- Add ACF field in a query
- Loop increase in while loop not working
- Get posts that do not have the same tags as current
- posts archive page – closing WP_Query loop correctly [closed]
- JSON – Create rest api endpoint for Advanced Custom Fields
- Create a page template for “top rated posts” but show full content and not just a list
- has_excerpt() not working inside wp_query
- All blog data on a page using custom query gives 404 for page 2 and onward
- wp_query is showing posts from other categories
- Daily drip of posts – based on user ‘startData’ – ordered oldest to newest
- How to add tax_query to $args with concatenation
- Should I reset $wp_query?
- Meta query compare for ID’s greater than specific ID
- Exclude a Woocommerce product from WP_Query
- WP ForLoop to compare meta information of posts to determine what post to display
- AJAX Breaking Offset Argument In WP Query
- WP_QUERY wrong ammount of posts
- How to add sort order to incremented and paginated category loop
- How does WP generate the default $query in WP_Query based on the URL?
- Continue or break the while loop
- How to filter query loop block with a search string from the query parameters
- inserting content of 1 Post to in another with a template hierarchy
- how to get category`s slug in WP_Query loop?
- Loop posts based on permalink term
- Save (and exclude) posts from loop to use in another loop on page
- Get all posts with empty meta_value
- How to split a post and intercalate elements from a loop
- How to remove only the latest sticky post from the loop
- Loop 3 posts column wise and continue the loop into same columns
- How I can repeat 2 HTML templates in a WordPress Query?
- PHP – Loop custom post type categories within jQuery Tabs
- Check if a post has term inside loop
- Custom query filter by ACF date custom field
- How to create a widget like this?
- When listing child pages run out of memory
- WPQuery calling specific posts problem
- How do I sort this custom list of sticky posts
- WP_Query with one category in args shows other categories
- Query only displays one page_id
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- How to Order By Two Custom Fields?
- How to display post list in a table layout (multiple queries in single loop)
- Different Loop for tag pages?
- Get a list of ACF Repeater-Fields as array
- Ordering posts by custom field and grouped by month
- Pagination for custom loop on custom page template is not displaying anything
- Does putting queries within loops cause an issue on WordPress?
- Filtering by multiple conditions in the loop
- Hiding carousel indicators if there’s only one post
- Query Taxonomy By Page Title
- How to access $wp_query object from array of posts given by get_posts?
- Function using get_posts() with tax_query not working when called from functions.php
- WordPress dynamic AJAX query
- Display all attached image of every post of custom post type and link to original post
- 2 queries with counters
- Get query results with a page title
- Get posts with no tags?
- wp-query, pull children of parent page
- How to get current page nearest parent id?
- How to get main menu only with wp_nav_menu
- relation OR instead of AND – Filtered term ID’s in loop
- Writing less unnecessary code with WordPress