admin管理员组

文章数量:1430142

Is there a way to use a shortcode that works in one WordPress page in another completely separate WordPress page?

Like if the shortcode was just a link, I could just use a href on the other page, but it's a shortcode [xxx] that needs to execute on the 1st Wordpress page that I want to display on another completely separate Wordpress page if that makes sense?

Is there a way to use a shortcode that works in one WordPress page in another completely separate WordPress page?

Like if the shortcode was just a link, I could just use a href on the other page, but it's a shortcode [xxx] that needs to execute on the 1st Wordpress page that I want to display on another completely separate Wordpress page if that makes sense?

Share Improve this question edited Apr 27, 2019 at 13:03 Chathu 151 silver badge6 bronze badges asked Apr 27, 2019 at 12:44 B. WalkerB. Walker 11 bronze badge 6
  • In case you are already using Gutenberg (and not the Classic Editor) you could put it into a reusable block. – user3135691 Commented Apr 27, 2019 at 13:10
  • 1 Please elaborate. I don't understand. – B. Walker Commented Apr 27, 2019 at 13:11
  • Please accept the anser as correct if it helped you, see my answer below – user3135691 Commented Apr 27, 2019 at 14:39
  • I have just realized - what do you mean by "completely other page" - another domain (separate installation of WordPress)? – user3135691 Commented Apr 27, 2019 at 14:41
  • Yes, another domain. – B. Walker Commented Apr 27, 2019 at 14:42
 |  Show 1 more comment

1 Answer 1

Reset to default 0

Step 1) Create a new shortcode in the Gutenberg editor.


Step 2) Enter your shortcode.


Step 3) Add it to reusable blocks


Step 4) Give it a name


Step 5) Navigate to the page or post where you want to use that block again. Call that block by typing it's name /Sta...


Final result

本文标签: linkingHow to use Shortcode from one WordPress page in another WordPress page