admin管理员组文章数量:1022727
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
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
本文标签: linkingHow to use Shortcode from one WordPress page in another WordPress page
版权声明:本文标题:linking - How to use Shortcode from one WordPress page in another WordPress page? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745546136a2155401.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论