{"id":9346,"date":"2021-03-06T19:26:57","date_gmt":"2021-03-06T19:26:57","guid":{"rendered":"https:\/\/demo.themeinprogress.com\/internal-linking-related-contents-pro\/?page_id=9346"},"modified":"2026-08-22T19:12:34","modified_gmt":"2026-08-22T19:12:34","slug":"shortcode","status":"publish","type":"page","link":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/documentation-pro-version\/shortcode\/","title":{"rendered":"Shortcode"},"content":{"rendered":"<p>If needed, you can use the <strong><\/strong> shortcode to manually display the post navigation in a specific position.<\/p>\n<p>When used without any attributes in a single post, the shortcode automatically uses the options configured under <strong>TIP Next Post Pro &gt; Plugin Settings<\/strong>.<\/p>\n<p>The following attributes are available:<\/p>\n<ol>\n<li><strong>layout<\/strong>, Override the layout configured in the plugin settings.\n<ul>\n<li><strong>layout-1<\/strong><\/li>\n<li><strong>layout-2<\/strong><\/li>\n<li><strong>layout-3<\/strong><\/li>\n<\/ul>\n<\/li>\n<li><strong>engine<\/strong>, Override the navigation\/search method configured in the plugin settings.\n<ul>\n<li><strong>adjacent<\/strong> \u2013 Standard Previous \/ Next<\/li>\n<li><strong>adjacent_category<\/strong> \u2013 Previous \/ Next in the same category<\/li>\n<li><strong>adjacent_tag<\/strong> \u2013 Previous \/ Next with the same tag<\/li>\n<li><strong>adjacent_category_tag<\/strong> \u2013 Previous \/ Next in the same category and tag<\/li>\n<li><strong>categories<\/strong> \u2013 Based on post categories<\/li>\n<li><strong>tags<\/strong> \u2013 Based on post tags<\/li>\n<li><strong>both<\/strong> \u2013 Categories or post tags<\/li>\n<li><strong>post_title_1<\/strong> \u2013 Post title, using the full title<\/li>\n<li><strong>post_title_1_category_filter<\/strong> \u2013 Full post title + category<\/li>\n<li><strong>post_title_1_tag_filter<\/strong> \u2013 Full post title + tag<\/li>\n<li><strong>post_title_2<\/strong> \u2013 Post title, using each word<\/li>\n<li><strong>post_title_2_category_filter<\/strong> \u2013 Each title word + category<\/li>\n<li><strong>post_title_2_tag_filter<\/strong> \u2013 Each title word + tag<\/li>\n<li><strong>keywords<\/strong> \u2013 Custom keywords<\/li>\n<li><strong>keywords_category_filter<\/strong> \u2013 Custom keywords + category<\/li>\n<li><strong>keywords_tag_filter<\/strong> \u2013 Custom keywords + tag<\/li>\n<li><strong>ai_engine<\/strong> \u2013 AI Engine<\/li>\n<\/ul>\n<\/li>\n<li><strong>posts_array<\/strong>, Manually specify up to two post IDs, separated by a comma. When this attribute is used, the automatic navigation\/search method is ignored.<\/li>\n<li><strong>target<\/strong>, Set <strong>_blank<\/strong> to open navigation links in a new browser window or tab. If omitted, the value configured in the plugin settings is used.<\/li>\n<li><strong>rel<\/strong>, Set the link relation attribute.\n<ul>\n<li><strong>nofollow<\/strong><\/li>\n<\/ul>\n<p>If omitted, the value configured in the plugin settings is used. Chronological navigation automatically receives the appropriate <strong>prev<\/strong> or <strong>next<\/strong> relation.<\/li>\n<\/ol>\n<h2>Examples<\/h2>\n<p>Use the current plugin settings:<\/p>\n<nav class=\"tnxtp-navigation tnxtp-layout-1 tnxtp-display-inline tnxtp-boxes-center\" aria-label=\"Article navigation\"><a class=\"tnxtp-slot tnxtp-left no-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/ipsum-elit-elit\/\"><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\"><span aria-hidden=\"true\">&#8592;<\/span> Previous post<\/span><span class=\"tnxtp-title\">Ipsum Elit Elit<\/span><\/span><\/a><a class=\"tnxtp-slot tnxtp-right no-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/incididunt-sed-dolor\/\"><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\">Next post <span aria-hidden=\"true\">&#8594;<\/span><\/span><span class=\"tnxtp-title\">Incididunt Sed Dolor<\/span><\/span><\/a><\/nav>\n<p>Use Layout 2:<\/p>\n<nav class=\"tnxtp-navigation tnxtp-layout-2 tnxtp-display-inline tnxtp-boxes-center\" aria-label=\"Article navigation\"><a class=\"tnxtp-slot tnxtp-left has-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/ipsum-elit-elit\/\"><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\"><span aria-hidden=\"true\">&#8592;<\/span> Previous post<\/span><span class=\"tnxtp-title\">Ipsum Elit Elit<\/span><\/span><img decoding=\"async\" class=\"tnxtp-thumbnail\" src=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/featured-image-1787400607-4570-80x80.jpg\" alt=\"\" loading=\"lazy\"><\/a><a class=\"tnxtp-slot tnxtp-right has-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/incididunt-sed-dolor\/\"><img decoding=\"async\" class=\"tnxtp-thumbnail\" src=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/featured-image-1787400915-4070-80x80.jpg\" alt=\"\" loading=\"lazy\"><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\">Next post <span aria-hidden=\"true\">&#8594;<\/span><\/span><span class=\"tnxtp-title\">Incididunt Sed Dolor<\/span><\/span><\/a><\/nav>\n<p>Use Layout 3:<\/p>\n<nav class=\"tnxtp-navigation tnxtp-layout-3 tnxtp-display-inline tnxtp-boxes-center\" aria-label=\"Article navigation\"><a class=\"tnxtp-slot tnxtp-left has-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/ipsum-elit-elit\/\"><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\"><span aria-hidden=\"true\">&#8592;<\/span> Previous post<\/span><span class=\"tnxtp-title\">Ipsum Elit Elit<\/span><\/span><span class=\"tnxtp-image-wrap\"><img decoding=\"async\" class=\"tnxtp-thumbnail\" src=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/featured-image-1787400607-4570-136x136.jpg\" alt=\"\" loading=\"lazy\"><\/span><\/a><a class=\"tnxtp-slot tnxtp-right has-thumbnail\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/incididunt-sed-dolor\/\"><span class=\"tnxtp-image-wrap\"><img decoding=\"async\" class=\"tnxtp-thumbnail\" src=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/featured-image-1787400915-4070-136x136.jpg\" alt=\"\" loading=\"lazy\"><\/span><span class=\"tnxtp-copy\"><span class=\"tnxtp-label\">Next post <span aria-hidden=\"true\">&#8594;<\/span><\/span><span class=\"tnxtp-title\">Incididunt Sed Dolor<\/span><\/span><\/a><\/nav>\n<h3>Manual post order<\/h3>\n<p>When using the <strong>posts_array<\/strong> attribute, a maximum of two posts can be selected.<\/p>\n<p>The first post ID is used as the <strong>next\/primary<\/strong> post displayed on the right, while the second post ID is used as the <strong>previous\/secondary<\/strong> post displayed on the left.<\/p>\n<p>If one of the specified IDs is the current article, it is automatically excluded.<\/p>\n<h2>Shortcode Generator<\/h2>\n<p><a href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator.jpg\" alt=\"\" width=\"1680\" height=\"775\" class=\"alignnone size-full wp-image-9921\" srcset=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator.jpg 1680w, https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator-300x138.jpg 300w, https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator-1024x472.jpg 1024w, https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator-768x354.jpg 768w, https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator-1536x709.jpg 1536w, https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-content\/uploads\/2026\/08\/shortcode-generator-1568x723.jpg 1568w\" sizes=\"auto, (max-width: 1680px) 100vw, 1680px\" \/><\/a><\/p>\n<p>You can use the built-in shortcode generator to create the shortcode without manually entering its attributes.<\/p>\n<p>The generator allows you to select:<\/p>\n<ul>\n<li>Layout<\/li>\n<li>Navigation\/search method<\/li>\n<li>Up to two manual posts<\/li>\n<li>Target attribute<\/li>\n<li>Rel attribute<\/li>\n<\/ul>\n<p>When an option is left unchanged, the corresponding value configured in the plugin settings will be used.<\/p>\n<p>The shortcode generator is available in the WordPress Classic Editor.<\/p>\n<p>When using the Block Editor, you can manually insert <code><\/code> inside a Shortcode block.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If needed, you can use the shortcode to manually display the post navigation in a specific position. When used without any attributes in a single post, the shortcode automatically uses the options configured under TIP Next Post Pro &gt; Plugin Settings. The following attributes are available: layout, Override the layout configured in the plugin settings.&hellip; <a class=\"more-link\" href=\"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/documentation-pro-version\/shortcode\/\">Continue reading <span class=\"screen-reader-text\">Shortcode<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":9591,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9346","page","type-page","status-publish","hentry","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/pages\/9346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/comments?post=9346"}],"version-history":[{"count":41,"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/pages\/9346\/revisions"}],"predecessor-version":[{"id":10038,"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/pages\/9346\/revisions\/10038"}],"up":[{"embeddable":true,"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/pages\/9591"}],"wp:attachment":[{"href":"https:\/\/demo.themeinprogress.eu\/tip-next-post-pro\/wp-json\/wp\/v2\/media?parent=9346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}