WPLake > Learning Hub > Display Posts and Custom Fields in WordPress (Without Code Bloat)

Display Posts and Custom Fields in WordPress (Without Code Bloat)

Learn how to display posts and custom fields in WordPress with Advanced Views — the easy solution for ACF, Meta Box, Pods, and WooCommerce.
post card in wp

Key Points at a Glance

  1. What custom fields are and why displaying them matters
  2. Common real-world examples like team members, events, properties, courses, and WooCommerce products
  3. Challenges of displaying posts and custom fields using traditional PHP methods
  4. Introduction to Advanced Views as a lightweight low-code solution compatible with ACF, Meta Box, Pods, and WooCommerce
  5. How Views and Cards work together to build reusable, dynamic layouts
  6. A practical example showing how to create a team directory with filtering and sorting options
  7. Using Advanced Views to display WooCommerce product data and custom fields easily
  8. Support for advanced field types such as repeater fields, relationships, galleries, and sliders in Advanced Views Pro
  9. Powerful filtering, sorting, and pagination features to manage large datasets and complex queries
  10. Clean, efficient HTML output via modified Twig templates with support for Tailwind, Bootstrap, and page builders like Elementor and Gutenberg
  11. Why these features are important for agencies, freelancers, and site owners building professional WordPress sites
  12. How to get started with Advanced Views Lite and upgrade to Pro for full capabilities

Table of Contents

Displaying posts and custom fields in WordPress should be simple — but often it’s anything but. If you’ve ever tried building a custom directory, portfolio, event calendar, or WooCommerce product archive with extra data fields, you’ve likely run into the limitations of WordPress’s default capabilities.

At WPLake, we created Advanced Views to bridge this gap — helping you display posts and custom fields easily, cleanly, and without writing PHP code. Whether you’re building with ACF, Meta Box, Pods, or WooCommerce, this guide will show you the most effective way to build dynamic, reusable content layouts in WordPress.

Let’s walk through the common challenges and show you how to solve them the modern way.

What Are Custom Fields — and Why Display Them?

Custom fields are extra pieces of data added to WordPress posts, pages, or custom post types (CPTs). WordPress itself doesn’t provide much in the way of structured content beyond a title and content block, but plugins like Advanced Custom Fields, Pods, and Meta Box give developers and site builders the ability to create rich, structured content types.

Common real-world uses include:

  • Team Members: name, role, bio, profile image, LinkedIn link
  • Events: date, location, RSVP link, organiser
  • Properties: size, location, number of rooms, price
  • Courses: instructor, module count, syllabus PDF
  • Products (WooCommerce): technical specs, badges, shipping lead time, related documents

These fields are often critical to how a site is used, searched, and filtered — but they don’t automatically show up on the front end unless you code it yourself. That’s where the problems begin.

Why Displaying Posts and Custom Fields Is Often a Headache

If you’re working directly with PHP templates, you need to manually query the database, handle metadata, structure loops, and ensure all your layout logic works for different post types and conditions. A typical solution might involve a combination of:

  • WP_Query
  • get_post_meta() or get_field()
  • Custom loops inside archive-{posttype}.php or page-template.php
  • Conditional logic to avoid layout breaks

Even a basic grid of team members could require several dozen lines of PHP and HTML markup — code that can break when fields are renamed or if a client accidentally changes something in the backend.

It’s inefficient, repetitive, and hard to manage across multiple sites or developers.

Introducing Advanced Views: The Easy Way to Display Posts and Custom Fields

Advanced Views is a lightweight, developer-friendly plugin that lets you build dynamic content layouts using your existing custom fields — without touching PHP.

It works with:

  • ACF
  • Meta Box
  • Pods
  • WooCommerce
  • And any post type or custom field saved in postmeta

Instead of writing code, Advanced Views lets you combine Views and Cards to control exactly how your content appears:

  • Views let you assign and style fields for individual posts or items (like a single team member or product card).
  • Cards let you query and display multiple posts using one of your Views as the layout template.

This separation makes it easier to reuse layouts across your site while maintaining full control over the design.

Real-World Example: Displaying a Team Directory

Let’s say you’ve created a “Team Member” custom post type with fields like:

  • Profile photo (image)
  • Full name (title)
  • Job title (text)
  • Department (taxonomy)
  • LinkedIn profile (URL)

Using Advanced Views, you can:

  • Set up a View layout with image, name, and job title
  • Add a button that links to their LinkedIn
  • Create a Card that queries all “Team Member” posts
  • Filter by department (e.g. only “Engineering”)
  • Sort alphabetically or by a manual order field

Note: filtering and sorting by custom fields (meta) is available in Advanced Views Pro.

Once your view is ready, simply paste the shortcode onto any page:

e.g. shortcode [avf_view name="team member" view-id="651d5d75bfdf2"]

You can reuse that same view anywhere, even across multisite installs.

Displaying WooCommerce Custom Fields and Product Data

WooCommerce is one of the most common places users want to display extra data — but customising its templates can be a nightmare.

With Advanced Views, you can:

  • Show technical product details outside of the product page
  • Build a comparison grid of related products
  • Filter products by category, tag, or custom taxonomy
  • Highlight fields like lead time, energy rating, or shipping options

Because Advanced Views integrates with WooCommerce’s product post type, you can treat it like any other — pulling product data and meta fields right into your custom layout.

This is especially powerful for product directories, quote-based systems, or stores using ACF for extended product information.

Support for Repeater Fields, Galleries, Relationships, and Sliders

Advanced Views Pro takes things even further by supporting:

  • Repeater Fields: Display lists of benefits, bullet points, daily schedules
  • Relationship Fields: Link team members to departments, courses to instructors
  • Gallery Fields: Show image galleries in modals or sliders
  • Splide Slider Integration: Turn a repeater or gallery field into a smooth, responsive slider
  • Conditional Logic: Only show a field if it’s not empty or meets certain criteria

This makes it possible to build complex, interactive content layouts without needing a frontend framework or custom plugin.

Examples include:

  • A property listing with image gallery and map
  • An itinerary builder with daily entries and optional highlights
  • A course page that shows related blog posts or downloadable resources
Modern content card design showcasing real estate listings, travel itineraries, and online course resources.

Flexible Filters, Sorting, and Pagination

No content display system is complete without powerful filtering. With Advanced Views, you can:

  • Filter posts by taxonomy (e.g. “category = tutorials”) — Pro only
  • Filter by custom meta field values (e.g. “price < 1000”) — Pro only
  • Combine filters (e.g. only show courses by Instructor X that are free) — Pro only
  • Ajax Paginate for your results automatically — Pro only
  • Order by date, title, or any custom field — Pro only for meta sorting

Whether you're showing 10 testimonials or 200 property listings, your site stays fast and easy to navigate.

Developer-Friendly Output and Page Builder Compatibility

Every Advanced View renders clean, efficient HTML using a modified Twig template system—no proprietary or bloated code. You can:

  • Add Tailwind classes directly within your Twig layouts
  • Style your cards using frameworks like Bootstrap
  • Wrap fields with your own HTML elements (<div>, <figure>, <a>) inside Twig templates
  • Integrate easily with page builders such as Elementor, Beaver Builder, or Gutenberg

That means your designs are always portable and future-proof, even if your theme or plugins change.

Why This Matters for Agencies, Freelancers, and Site Owners

Being able to display posts and custom fields reliably and repeatably is super powerful thing for any WordPress project. It unlocks real functionality for your site — the kind of dynamic content layouts that impress clients and save hours of development time.

With Advanced Views, you can:

  • Empower non-technical users to manage complex content
  • Avoid hardcoding custom loops or template logic
  • Build reusable, modular layouts for any project
  • Offer custom solutions without creating custom plugins
  • Hand off sites with confidence — they just work

Whether you’re building a property directory, knowledge base, staff portal, or product showcase, Advanced Views gives you the control you need.

Get Started Today

You can try Advanced Views Lite for free on the WordPress plugin directory, or unlock the full power of custom field display with Advanced Views Pro.

Start building better WordPress websites — the flexible, maintainable, low-code way.

👉 Download Advanced Views on WordPress.org
👉 Explore Advanced Views Pro
👉 Browse the Documentation

From creating your first dynamic content view to refining a custom site for a client, Advanced Views offers a smarter way to display posts and custom fields in WordPress.

Stuck with development or facing an issue?

WPLake offers affordable on-demand website development and design.

No matter the size of your project - contact us now, and we'll get it done for you!

Get assistance now

FAQ mode

/

Learning mode

  1. What are custom fields in WordPress?

    Custom fields are additional pieces of data attached to posts, pages, or custom post types. They allow you to add structured information beyond the default title and content, such as dates, images, or specifications.

  2. Why do I need a plugin like Advanced Views to display custom fields?

    By default, WordPress doesn’t display custom fields on the front end automatically. Advanced Views lets you build dynamic, reusable layouts for posts and custom fields without much code, simplifying complex queries and layouts.

  3. Can I filter and sort posts by custom field values?

    Filtering and sorting by custom fields (meta fields) is available in Advanced Views Pro, enabling precise control over what content appears and in what order.

  4. Do I need to know coding to use Advanced Views?

    You don’t need in-depth knowledge of PHP or HTML to use Advanced Views. However, having a basic working understanding of HTML and CSS is helpful for modifying and styling templates effectively. Advanced Views uses a modified Twig template syntax, which is straightforward to learn and allows you to create flexible layouts with minimal coding.

  5. Can I display complex field types like repeaters, relationships, and galleries?

    Yes, Advanced Views Pro supports repeater fields, relationship fields, gallery fields, and includes slider integration to display content like image galleries or lists dynamically.

  6. Is Advanced Views compatible with page builders?

    Absolutely. Advanced Views layouts and shortcodes work well inside popular page builders like Elementor, Beaver Builder, and the WordPress block editor (Gutenberg).

  7. How does Advanced Views improve site performance?

    Advanced Views outputs clean, efficient HTML without unnecessary bloat and uses optimized queries, ensuring your site stays fast even with complex content displays.

  8. Can I reuse the same layout across multiple sites or pages?

    Yes. Views and Cards are designed for reuse, allowing you to maintain consistent layouts across multisite installations or different areas of your website.

  9. Where can I try or buy Advanced Views?

    Advanced Views Lite is available for free on the WordPress.org plugin directory. Advanced Views Pro, which unlocks full filtering, sorting, and advanced field support, can be purchased from the official website.

Was this article helpful?

Totally useless

Slightly helpful

Very helpful

Course navigation: WordPress Beginner

Content links (14)

About the Author

Baxter Jones

With over 15 years of experience in the web industry, I specialize in design, user experience, and web best practices. I have a keen eye for detail and thrive on following a structured process in my work. I’m passionate about WordPress, considering it the best innovation since sliced bread. When I’m not at my computer, you’ll find me enjoying time in the garden.

0 Comments

    Leave a comment

    Reply to 

    Please be considerate when leaving a comment.

    Not shown publicly


    Got it