How to Show Docs Archive in EazyDocs Documentation Plugin Using Shortcode?
You can display the document archive page using the following EazyDocs shortcode:
[eazydocs col="3" include="" exclude="" show_docs="" show_articles="" more="View More"]
- col – Used for displaying in number of columns. Current supported values are 2, 3 and 4. So you can show the documents in two, three or four columns.
- include – Default value: any. Used for only including certain docs. This parameter takes a comma-separated list of Doc IDs.
- exclude – Define a comma-separated list of Doc IDs to be excluded from the list.
- show_docs – Total number of Docs to show in the archives. Use -1 to display all the docs.
- show_articles – Total number of articles to show in each Doc. Use -1 to display all the articles.
- more – Default value: View More. Used for the view details text.
If you are using Gutenberg to create your page, you can simply paste the shortcode into the document, and it will automatically render as a shortcode.
If you are using Elementor to edit your page, you will need to use the shortcode widget and input your shortcode.
Using EazyDocs Shortcodes
Examples of shortcodes: Showing EazyDocs archives in 4 columns –
[eazydocs col="4"]
Display the EazyDocs archive in 3 columns and include only documents with IDs 14, 18, and 20. Exclude documents with IDs 32, 33, and 28, and display a total of 7 documents with 4 articles in each. Change the text of the “View More” button to “All Articles.”
[eazydocs col="3" include="14,18,20" exclude="32,33,28" show_docs="7" show_articles="4" more="All Articles"]