Generate: Related Links

Overview

For some sites, you may need output a list of related links on your Generated Pages, Posts or Custom Post Types, so that visitors can see related content, and internal linking is available for search engines to crawl.

Page Generator Pro provides a Related Links shortcode to achieve this.

You can add the shortcode on any Page – it doesn’t have to be a Page Generator Pro Content Group or Generated Page.  For example, you can use this shortcode on your own manually built landing page, if you’d like to list all Generated Pages from a specific Content Group.

In most TinyMCE instances, you’ll see an option to add the Related Links shortcode in the Visual Editor toolbar:

Enter the following information:
Page Generator Pro: Generate: Content: Related Links

  • Group: Choose a Group to display Related Links for.
  • Number of Links: The maximum number of Links to display, linking to other Pages generated in this Group.
  • Post Type: The generated Post Type to limit Related Links to.  For example, if you only want to link to Posts generated by this Group, choose the Posts option.
  • Post Status: The generated Pages / Posts’ status.  For example, if you only want to link to published Pages generated by this Group, choose the Publish option.
  • Post Author ID: Only display Related Links to Generated Pages / Posts where the Author matches the given Author ID.
  • Categories: One or more comma separated Term Names or IDs.  When specified, only displays links to Generated Content that contains the matching Categories.
    • Keywords can also be used here.
    • For example, to only display links to Generated Posts that contain the Category web design, you’d type web design into this field.
  • Tags: One or more comma separated Term Names or IDs.  When specified, only displays links to Generated Content that contains the matching Tags.
    • Keywords can also be used here.
    • For example, to only display links to Generated Posts that contain the Tag web design, you’d type web design into this field.
  • Order Link By: How to order the Related Links
Shortcode not working? Related Links will only be displayed if there are other generated Pages in this Group.   Therefore, it won’t display any Related Links when generating content using the Test button / method.

A shortcode will then appear within the content:
[[page-generator-pro-related-links limit="5"]]

Parameter Accepted Value Description
group_id integer The Group ID to display Related Links for.
limit integer The maximum number of Links to display, linking to other Pages generated in this Group.
post_type integer The generated Post Type to limit Related Links to.  For example, if you only want to link to Posts generated by this Group, choose the Posts option.
post_status string (publish, draft, scheduled, private) The generated Pages / Posts’ status.  For example, if you only want to link to published Pages generated by this Group, choose the Publish option.
author integer (WP_User ID) Only display Related Links to Generated Pages / Posts where the Author matches the given Author ID.
category string, integer One or more comma separated Term Names or IDs.  When specified, only displays links to Generated Content that contains the matching Categories.
post_tag string, integer One or more comma separated Term Names or IDs.  When specified, only displays links to Generated Content that contains the matching Tags.
orderby string (none, ID, author, title, name, type, date, modified, rand, comment_count, relevance) The data to order the links by
order string (asc, desc) Whether to display the links in ascending or descending order
If you have other registered Taxonomies, they can be added to the shortcode parameters using their programmatic name as the parameter.  Value types match those valid for Categories and Post Tags.