HTML Page Sitemap (Block and Shortcode)
This simple plugin adds an HTML (Not XML) sitemap of your pages (not posts) by using the shortcode [html_sitemap]. This plugin can display a sitemap with specific depths, from a specific parent page and include/exclude specific pages by ID. The sitemap uses the unordered HTML list tags and . New for 2.0 is the HTML Sitemap Block, now you can add a HTML Sitemap using the WordPress Block Editor. Attributes include sort_column, sort_order, exclude, include, depth, child_of, meta_key, meta_value, authors, number, offset, post_type, and post_status parameters from the wp_list_pages function. In addition you can also set class, id, and ordered_list_type to further customize the html page sitemap. This plugin is perfect for those who use WordPress as a CMS. Block / Shortcode Tag Attribute Options The following wp_list_pages tag attribute options are supported: authors — Comma-separated list of author IDs. Default empty (all authors). child_of — ID of child page, ‘CURRENT’, or ‘PARENT’. The value ‘CURRENT’ will use the current page ID. The value ‘PARENT’ will use the current page parent ID. depth — -1 (any depth), 0 (all pages), 1 (top-level pages only), 2 (top-level and 2nd level pages only), etc. date_format — e.g. ‘l, F j, Y’. See WordPress Date Format exclude — Comma-separated list of page IDs to exclude. include — Comma-separated list of page IDs to include. item_spacing — Whether to preserve whitespace within the menu’s HTML. Accepts ‘preserve’ or ‘discard’. meta_key — Limits output to pages having a specific custom field key. meta_value — Limits output to pages having a specific custom field value. number — Limits the number of links displayed (SQL LIMIT). offset — Skips a specific number of pages before displaying the list. post_type — Post type to query for. Default ‘page’ post_status — Comma-separated list or array of post statuses to include. Default ‘publish’ show_date — Whether to display the page publish or modified date for each page. Accepts ‘modified’ or any other value. An empty value hides the date. sort_column — Comma-separated list of column names to sort the pages by. Accepts ‘post_author’, ‘post_date’, ‘post_title’, ‘post_name’, ‘post_modified’, ‘post_modified_gmt’, ‘menu_order’, ‘post_parent’, ‘ID’, ‘rand’, or ‘comment_count’. Default ‘menu_order, post_title’. sort_order — ‘ASC’ or ‘DESC’. Default ‘ASC’. Please see documentation for the wp_list_pages function for reference. Demos Demo of the HTML Sitemap Block Demo of the HTML Sitemap shortcode In addition the following tag attributes are available exclusively for this plugin: class — Specify class values for the initial HTML Page Sitemap list tag. id — Specify ID values for the initial HTML Page Sitemap list tag. ordered_list_type — Specify the ordered list type. Accepts ”, ‘1’, ‘A’, ‘a’, ‘I’, and ‘i’. Default empty value will display an unordered list. The ordered_list_type attribute options in more detail: ordered_list_type="" — The list items will be unordered ordered_list_type="1" — The list items will be numbered with numbers ordered_list_type="A" — The list items will be numbered with uppercase letters ordered_list_type="a" — The list items will be numbered with lowercase letters ordered_list_type="I" — The list items will be numbered with uppercase roman numbers ordered_list_type="i" — The list items will be numbered with lowercase roman numbers Note: This plugin only works with Hierarchical Custom Post Types such as pages. This plugin will not work if your post type is not hierarchical. Not setting an ordered_list_type will use an unordered list (default). Examples First example shows how to add a sitemap for the entire site. [html_sitemap] Example shortcode will add a sitemap to a page displaying a depth limit of 3 and exclude page ID 708. [html_sitemap depth=3 exclude=708] Example shortcode will add a sitemap to a page displaying only children and grandchildren of the current page. [html_sitemap depth=2 child_of=CURRENT] Example shortcode will add a sitemap to a page displaying children and grandchildren of the parent page (would include the curent page as well). [html_sitemap depth=2 child_of=PARENT] Example shortcode will add a sitemap displaying the page modified date with the pages sorted by the menu order number. [html_sitemap show_date=modified sort_column=menu_order] Example shortcode excluding multiple pages with ids 708, 1024 and 42. [html_sitemap exclude="708,1024,42"] Example shortcode will add a class attribute to the tag. [html_sitemap class="custom-class"] Example shortcode will add an id attribute to the tag. [html_sitemap id="custom-element-id"] Example shortcode will display an ordered list using lowercase letters with a depth of 1. [html_sitemap ordered_list_type="a" depth=1] Example shortcode with roman numbering in capitalization, with custom field “featured-list” and custom value “yes” [html_sitemap ordered_list_type="I" meta_key=featured-list meta_value=yes sort_column=post_date] For the latest information visit the website. http://www.pluginspodcast.com/plugins/html-page-sitemap/ Contributors Angelo Mandato, founder of Painless Analytics and FrontPup – Plugin author
Top keywords
- list34×4.05%
- sitemap26×3.10%
- html21×2.50%
- page20×2.38%
- post17×2.03%
- type17×2.03%
- html sitemap15×1.79%
- pages15×1.79%
- ordered14×1.67%
- ordered list14×1.67%
- list type13×1.55%
- ordered list type13×1.55%
PDF Embedder – PDF Viewer & Embed PDF Files for WordPress
Upload PDF files and embed them directly into your site’s posts and pages, as simply as adding images. Each document displays right where you place it, at its natural size or a width you choose, and the responsive viewer adapts automatically whenever the browser dimensions change. Out of the box, WordPress turns an uploaded PDF into a bare download link: visitors click it and leave your page, or the file opens in a viewer you don’t control. PDF Embedder keeps them reading on the page and keeps you in control of how your document looks. PDF Embedder displays PDF documents on more than 300,000 websites. It differs from other PDF plugins in how the document becomes part of the page: rendered inline, sized to your layout, served entirely from your own site, and previewed live while you edit. There is no Google Docs Viewer or other third-party service involved, and the viewer loads its files only on pages that contain a PDF, so the rest of your site stays fast. In the Block Editor, the PDF Embedder block shows a live preview of your document while you edit. Pick a PDF file from the block sidebar, change a setting, and the preview updates to match what visitors will see on the front end. What can you embed? Any PDF file, whether it lives in your Media Library or in another folder on your site. Embed unlimited PDFs across posts, pages, and custom post types. Site owners use PDF Embedder to display: Restaurant menus and price lists Ebooks, guides, whitepapers, and research reports Product catalogs, brochures, and lookbooks Newsletters, magazines, and annual reports User manuals and technical documentation Worksheets, lesson plans, and other course materials Sheet music, church bulletins, and event programs Real estate flyers, floor plans, and legal documents Resumes and portfolios Visitors read the document right on the page: no new tab, no forced download, and no Adobe Acrobat or third-party account required. How it works Upload a PDF to your Media Library, or copy the URL of a PDF hosted anywhere else. Add the PDF Embedder block and pick the file from the block sidebar. In the Classic Editor or a page builder, use the shortcode instead. Publish. Visitors turn pages with the Next and Previous buttons and zoom in when part of a page is too small for their screen. The shortcode works anywhere shortcodes do: [pdf-embedder url="https://example.com/wp-content/uploads/2024/01/Plan-Summary.pdf"] Site-wide defaults, such as width and toolbar position, live under Settings -> PDF Embedder, and any single embed can override them with its own block settings or shortcode attributes. See the Plugin Instructions for sizing options and other ways to customize. Works with membership, e-commerce, and course plugins PDF Embedder renders through a regular shortcode and block, so the viewer works anywhere your post content does, including pages that other plugins restrict or sell access to. Sell access to premium PDF content, such as ebooks, reports, or research papers, by embedding it on pages protected with MemberPress, Paid Memberships Pro, Restrict Content Pro, or WooCommerce Memberships. Deliver handouts and workbooks inside courses built with LearnDash, LifterLMS, or Tutor LMS. Show a free sample chapter on a WooCommerce or Easy Digital Downloads product page, and deliver the full ebook after purchase. Embed several PDFs on one page to build a simple PDF document library for your team, school, or members. On the Pro plan of PDF Embedder Premium, you can pair restricted pages with the secure viewer and watermarks, so members read documents online while the original file stays hard to download. What users say Site owners tend to stay with PDF Embedder for years. Here is what they say: “One client wanted to display PDF newsletters in a way that was clean, user-friendly, and easy to scroll through. That’s when I discovered WP PDF Embedder. It does the job beautifully, making PDFs look professional and effortless to navigate. Since then, it has become my go-to recommendation for any client who needs to showcase PDF content on their website.” — Vera Schafer “I have been using PDF Embedder for well over ten years. It’s just a great app. Can’t recommend it enough.” — Rich Calo “I have been using this plugin (both the free version and the pro version) for a number of years on various clients’ websites. It is easy to set up, does what it needs to and just works the way a plugin should. I highly recommend it.” — DebsWebs “I’ve been using PDF Embedder Secure for 3 years now, and it helped me sharing my paid content securely, preventing malicious people from buying my PDF files and then sharing them illegally everywhere. PDF files are chopped, digested, watermarked, unaccessible even if someone finds the direct link.” — Daniele Benedettelli Go further with PDF Embedder Premium In the free plugin, there is no download button and links inside the PDF are not clickable – the viewer is intentionally simple to fulfill the “read online” goal. PDF Embedder Premium adds those and more: Download button in the toolbar, so visitors can save your document for later. Working hyperlinks, both within the document and out to any other page. Continuous scroll – readers scroll through pages naturally instead of clicking through them. Mobile-friendly full screen mode – when the document renders narrower than a width you set, as it does on most phones, it displays as a thumbnail with a large “View in Full Screen” button. The document opens with the full focus of the mobile browser, and readers swipe between pages instead of clicking buttons. Jump to page – type a page number in the toolbar to go straight there. Full-text search – visitors search the text of your PDF documents from the toolbar and jump straight to matching pages. View and download tracking – see which documents people actually read. Elementor widget with the same options as the block and a live PDF preview in the Elementor editor. Secure viewing (Pro plan) – the PDF is encrypted during transmission, so it is difficult for a casual user to save or print the original file, and your document is far less likely to end up outside your site. Watermarks (Pro plan) – overlay any text, including the logged-in user’s name or email address, to discourage sharing of screenshots. Automatic PDF thumbnails (Elite plan) – every PDF in your Media Library gets an image thumbnail to use as a featured image, a clickable download link, or the file’s icon in the Media Library. Every plan comes with a 14-day money-back guarantee: if Premium is not a fit, you get a refund, no questions asked. Compare Premium plans on wp-pdf.com Better than Google Drive embeds, Scribd, Issuu, and other PDF tools The usual ways to embed a PDF without a plugin – an iframe snippet, the Google Drive or Google Docs viewer, or a service like Scribd, Issuu, FlippingBook, FlipHTML5, or DocDroid – hand your document to servers you don’t control. It loads at their speed, carries their branding, and can disappear or change terms at any time. You may have also tried other WordPress PDF plugins, such as EmbedPress, Embed Any Document, PDF Poster, Wonder PDF Embed, PDF.js Viewer, or flipbook plugins like DearFlip and 3D FlipBook. Most rely on iframes or third-party viewers to display the document. PDF Embedder keeps everything on your own site: your files, your server, your data. That is better for page speed, better for privacy, and more reliable for your visitors. With thanks to the Mozilla team for developing the underlying pdf.js technology used by this PDF viewer plugin. Branding guidelines PDF Embedder is a product of wp-pdf.com. When writing about this WordPress PDF plugin, please use the correct branding: PDF Embedder (correct) PDFEmbedder (incorrect) PDF Embeder (incorrect) PDF Imbedder (incorrect)