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
1 Answer
Reset to default 0Step 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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745546137a4632346.html
评论列表(0条)