For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Selection Template

Advanced Views automatically generates a default template for any Post Selection. It includes the loop to display the query results and may include a "No posts found" conditional message or pagination elements, depending on the Post Selection settings.

Post Selection templates support arbitrary logic, allowing you to perform operations such as formatting output or calling any WordPress function directly within the template.

1. How to customize Post Selection template

Both Default Template and Custom Template fields are smart templates that use one of the built-in template engines.

  1. Go to Edit your Post Selection.

  2. Switch to the Template tab.

  3. Select the Default Template code and copy it.

  4. Paste the code in the Custom Template field.

  5. Edit the markup as needed.

  6. Click on Update to save your Post Selection.

Last updated