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
- Using a custom WP_Query with get_template_part loop
- Show posts without term
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- get_template_part in for loop
- Display several random posts, but make sure a condition is met
- “pre_get_posts” firing on every query
- Show two random posts from custom post type
- Add the “active” class only to the first loop item in a WordPress query [closed]
- Loop inside the loop
- Pagination Not working on Home Page with 2 Query
- cloning a WP_Query
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Sort by meta key on archive page
- How is WP_Query connected to WP_Post in The Loop?
- What are the differences between “Latest Posts” and “Static Page”?
- Get posts for last working week in WP_Query
- query user display_name failed in a custom mysql query foreach
- Query posts by specific word on title
- Can I create a loop with multiple post types and specify different $args for each post type?
- Reset postdata to custom query in nested queries
- How to Filter Posts by Custom Fields?
- How can I display a custom field from all posts and order them individually from their parent post
- Loop Split two Columns
- How to list posts with disabled/closed comments, with pagination?
- How to make a second query offset -2 from current post
- Custom taxonomy.php not working
- Best choice for multiple loop in page?
- WP Query – order posts by meta field first and then order the rest
- WP User Query with Custom Fields and Search Results
- Wp_query with 2 meta keys and array of meta values
- sort and display posts by custom field (wp-query and the loop))
- How to create custom query by keyword in post title?
- WP ForLoop to compare meta information of posts to determine what post to display
- How to filter query loop block with a search string from the query parameters
- When listing child pages run out of memory
- WPQuery calling specific posts problem
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- How to display post list in a table layout (multiple queries in single loop)
- Different Loop for tag pages?
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- 2 queries with counters
- Search.php – return number of results but cannot loop through
- Creating ‘posts page’ loop based on the page itself
- WordPress Queries Not Working?
- How to get pages of parent (non-recursive)?
- Nearby locations using Advanced custom fields, maps?
- Duplice post with standard WP loop – fixed by using query_posts() instead
- create custom shortcode wp and put php code in
- Check the stored / cached WP_Query with transients on post change
- New template file does not load category-specific post
- Related posts queries
- Get categories within specific term
- Custom query for custom post type not getting correct post ID
- Query post with content only
- ACF query-pass field value
- Why is my query not giving results?
- how to show more than 1 post into three columns query
- How to create page that lists tags by initial letter?
- Get a page ancestor from a most viewed list
- Wrap group of wp query posts to parent div by date/year
- Continue loop after $queryObject
- active link for most recent post on vertical tabs
- Wrote a WP Cron Plugin and it triggers a fatal error upon activation
- Can’t get the_content to show
- How do I display posts with specific value in a custom field into my loop?
- Order by multiple meta keys on wordpress
- get contents and permalink from a specified page
- Display First posts without the default featured image
- How ‘secure’ are loops?
- How to do a loop inside a loop?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- How can I display sticky posts at first in wp_query?
- Pagination only showed when no category is set in wp_query