Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 121|回復: 0
打印 上一主題 下一主題

I prefer to look from the top to

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
跳轉到指定樓層
樓主
發表於 2023-4-16 18:06:11 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
ButEmbedded page content example Using  to Add Page Content in WordPress If you don’t want to use the Insert Page block, then you can use a instead. The plugin has shortcode parameters that let you customize the page content that you want to display. This  method may be quicker if you want to add the same content and styling to multiple pages. Simply paste the  anywhere on your site, and WordPress will show the right content with the right styling. In the shortcode above, you’ll need to replace the with the page or post’s slug, or the post ID. For more information, please see our guide on how to find IDs in WordPress. the type of page content you want to display, and the styling it should have.
  
For example, the shortcode below will show a page with the ID of ‘128.’ It will also show the page’s content: [insert page='128' display='content'] To place the just open a post or page and then click the ‘+’ to add a new block. In the popup mobile number list search for and then select the right block when it appears. Add new shortcode block Now, simply paste the  into the new block. Make sure to click the ‘Update’ or ‘Publish’ button to save your changes. Enter page shortcode With that done, you can visit your WordPress website to see the embedded page or post content live. Adding Custom Post Types into WordPress Posts and Pages If you’re using custom post types to organize your content, then you can add these to your posts and pages too.



For example, you might create a custom post type for your image galleries, videos, testimonials, portfolio items, and more. For more details, please see our guide on how to create custom post types in WordPress. Once you’ve added a custom post type to WordPress, simply go to the page or post where you want to show that content. You can then add content from custom post types following the same process described above. Here’s a page with content embedded from multiple posts that all have the ‘Book’ custom post type. Custom post type books example Using Custom Templates to Display Inserted Pages As we’ve already seen, Insert Pages has some settings that allow you to customize how the inserted content looks.


回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|Comsenz Inc.

GMT+8, 2026-9-13 12:51 , Processed in 0.029042 second(s), 20 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表