please check your postype and add arg
<?php
$query = new WP_Query( array( 'post_type' => 'ourproducts' ) );
if ( $query->have_posts() ) :
while ( $query->have_posts() ) :
$query->the_post();
?>
<h3><?php echo get_field('nasi_proizvodi'); ?></h3>
<?php
endwhile;
wp_reset_postdata();
endif;
?>
Related Posts:
- WebP Fallback for Inline Background Image in Style Attribute
- Values show up in custom home page but not in custom post pages
- Function that get ACF fields value before saving
- Retrieve a post with its ACF repeater fields in wordpress
- Change permalinks for posts but not for custom post types
- importing third party json feed as custom post type [closed]
- Assign single template to multiple custom post types?
- How to build a complex page structure
- How can I fix those issues generated by the Themecheck plugin
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- WP Rest API Querying Custom Posts by ACF fields
- Rename a current used post type
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Template tags to display custom post type posts in category template?
- How to set custom post type as post title to avoid ‘Auto Draft’
- Query current and future events, ordered by begin date
- Change message given when deleting post from custom post type
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- adding .current* tags to custom post types and taxonomies
- Query Custom Post Types by date (custom field) range
- Page as a child of a Custom Post Type
- Remove duplicated values from a loop
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- “add_post_type_support” with Custom Post Type & ACF
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- get_posts of Custom Post Type AND Custom Taxonomy
- How can I dynamically add a post to a custom post type which uses a custom field?
- the_content() not outputting anything (Advanced Custom Fields)
- Query & Order posts by custom fields
- Not Able to Get Custom Post Type Gallery Images URL
- ACF From & To Date Validations
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Retrieve custom field from Contact Form 7 [closed]
- Building a Treatments Page, What Do I Use?
- Multiple Frontend Filters Using Advanced Custom Fields
- How to set the seo title tag on a page by page basis?
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- Two column layout with alphabetical ordering
- How to inherit field value from parent post into in child / sub post
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Custom Post Type page sorts differently on different environments
- Custom post type’s posts are not showing anywere but in xml sitemap
- posttype and custom fields on multisite
- If Post type use sidebar (‘tree’)
- Custom fields not showing in custom post type
- Group by custom field value (start and end times)
- Custom meta box in custom post type not working
- wp-includes does not contain a feed template
- Advanced custom field – posted fields from custom post type
- How can I tell if I’m on a custom post type archive page?
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Show/hide posts and categories based on user meta
- Fetch data from two custom post types and create multidimensional array for output to html table
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- How to get the custom post data using post id in WordPress?
- Set up a WP Cron scheduled event to update calculated ACF field
- Query filter by value in meta_value array
- Show Post Revisions on front-end
- How to show Custom Post Type – Case Study using Shortcode & ACF
- Loop all post on single.php
- Custom post ID & display information related to this ID
- Custom post type 404 category page
- Expire post to draft by date-picker custom field
- programmatically generated custom post type is created more than once
- WP_Query not using custom taxonomy categories on custom post type
- How would i insert a value of custom field from Advaced Custom Field into shortcode generated by Gravity Forms [closed]
- Issue to display Permalink (ACF Relationships in Custom Post Type )
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- How to use posts as tabs in a custom page?
- Custom post type not pulling CSS
- Button link display in shortcodes using custom field in ACF
- How do I link to a dynamic ACF button from a Custom Post type?
- Taxonomy shows up twice on Custom Post Type
- How to hide sub fields in a field group and also the entire field group if the answer selected is “no”
- Custom permalink rewrite rules – how do I fix this?
- call a function when insert and update a custom post type
- Automatically convert standard posts with custom fields to custom post types
- Submit and edit font end custom post type
- How to make a custom search template for custom taxonomy?
- Making my custom column sortable
- How To Display Category list from Portfolio post type plugin?
- Get month and day from a Date Picker custom field
- Search form to find custom meta box generated data
- Query custom post type and showing its content
- Issue on Counting CPT’s Under Taxonomy Term
- Why is my custom form saving with ‘autodraft’ as title and slug?
- Modifying and Displaying URL’s in a Post Template using parse_url
- Advanced Custom Fields: query posts filtered by multiple field values
- WooCommerce – Complete Order when an action occurs
- How to create custom page templates with default page layout framework?
- WordPress Loop trouble with ACF [closed]
- Filter page ID outside the loop and order
- Custom taxonomy meta fields
- Create WP multisites as a custom post type
- WordPress WP_Query Sort by 2 dates – custom fields
- Custom Sort Order for Custom Post Type Taxonomy
- WordPress post objects in one parent post object