Advanced Views Docs
Live PlaygroundDownload PluginGet PRO
  • 💡Help Centre
  • ⚡Getting Started
    • Introduction
      • Key Aspects
      • Creating Your First View
      • Creating Your First Card
      • Plugin Terms
      • Plugin Interface
        • Field Options
    • Installation
      • Advanced Views Lite
      • Advanced Views Pro
      • Comparison Table
      • Upgrading from Lite to Pro
    • Supported data vendors
    • Starter theme
  • 🌟Display Content
    • WordPress
      • Post
      • Taxonomy terms
      • User
      • Comments
      • Menus
    • WooCommerce Product
    • Meta fields
      • Basic fields
        • Number
      • Content fields
        • Image
        • File
        • WYSIWYG
        • oEmbed
        • Gallery
      • Choice fields
        • Select/checkbox/radio
        • True / False
      • Relationship fields
        • Link
        • Post_object
        • Page Link
        • Relationship
        • Taxonomy
        • User
      • Advanced fields
        • Google Map
        • Google Map Multiple Markers
        • ACF OpenStreetMap Field
        • Date/time picker
      • Layout fields
        • Group (Pro)
        • Repeater (Pro)
        • Flexible (Pro)
    • Object fields
    • Custom Data (Pro)
    • Custom Gutenberg Blocks (Pro)
    • Mount Points (Pro)
    • Front-end assets management (Pro)
  • 🦸‍♂️Query Content
    • Basic Filters
    • Meta Filters (Pro)
      • Current Post
      • Comparison
      • Dynamic Injection
    • Taxonomy Filters (Pro)
    • Pagination (Pro)
    • Custom Data (Pro)
  • 🏆Shortcode Attributes
    • Common Arguments
    • View Shortcode
    • Card Shortcode
  • 🧙‍♂️Templates
    • Customizing the Template
    • Template engines
      • Twig
      • Blade
    • CSS & JS
      • BEM Methodology
      • WordPress Interactivity API
    • File system storage
    • Pre-built components
    • Reusable components library (Pro)
    • Live reload
    • Multilingual
    • Custom Ajax & Rest API (Pro)
  • ☕Guides
    • Display Custom Post Type (CPT) on another post
    • Display Employees (CPT) of a Company (CPT)
    • Display Nested Repeater Fields
    • Map Marker from ACF Image
    • Display all CPT items on a single map
  • 🛠️Tools
    • Export/Import
    • Demo Import
    • Settings
    • Preview
  • 🏹Troubleshooting
    • Compatibility
    • Report a bug
    • Payment Issues
    • Lite Support (Forum)
    • Pro Support
  • ⚙️Customization
    • Filters and Hooks
      • View
      • Card
    • Suggest a feature
    • Performance
Powered by GitBook
On this page
  • How to use it
  • Custom theme template

Was this helpful?

  1. Display Content

Mount Points (Pro)

Mount Points allow you to add a View to a location that doesn’t support shortcodes and places that usually require editing PHP templates.

PreviousCustom Gutenberg Blocks (Pro)NextFront-end assets management (Pro)

Last updated 11 months ago

Was this helpful?

How to use it

and assign fields as usual.

Switch to the Mount Points tab.

Click on the Add Mount Point button.

In the Specific posts field select which posts to limit the mount point to.

Or instead use the Post Types field to limit the mount point to all posts of the same type.

Determine where you want to show your View, then add the Unique word, string or HTML piece to ‘Mount’ to using the Mount Point. If left empty the content will be used as a mount point.

Note: this feature uses 'the_content' theme hook, so mount points won't work if your theme or a specific template doesn't call it or calls it outside of the standard loop.

Custom theme template

If you’re going to create your own theme template, see below for a sample on the correct standard loop, you will have to use this as a basis in order for the Mount Points feature to work with pages that use your custom template files.

<?php
// even if your template is designed for a single page/CPT item
// you must use the loop, it's the default WordPress way 
// (see default themes, like twentytwenty) 
while ( have_posts() ) {
    // it's a part of the loop, this call 'loads' data about the current post/CPT item
    the_post();
    
    // content can be printed either using the 'the_content()' function
    the_content();
    
    // or can be get using the 'get_the_content()' function, 
    // but only along with the "apply_filters( 'the_content', $content )" call
    $content = get_the_content();
    $content = apply_filters( 'the_content', $content );
    
    // todo print post fields here
}

In the field add available arguments to your shortcode to or to .

🌟
Add a new View
Shortcode Arguments
restrict visibility
define another object id