You need to apply the filter the_content
e.g.:
<?php echo apply_filters('the_content',$home_page->post_content); ?>
Also, you don’t need custom shortcodes for youtube, just put the URL in the content (but not a hyperlink), and it’ll be swapped out for a youtube player at runtime. No plugins or extra code needed thanks to oembed.
Related Posts:
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- What’s the best way to render Visual Composer in posts, not pages?
- How to get ID of the page included with get_page()?
- WordPress 302 Redirect to Random Product/Post/Page
- HTML Inside of Shortcode Breaks Shortcode Output
- Change published date and time using SQL query for page in every 5 hour
- How can I create a shortcode to show the number of posts of actual day?
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Is it possible to query a category with specified posts?
- Using Post ID and Page ID in same function
- How do I add an article to specific page?
- Insert Shortcode exactly at the end of the content
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to display by default only published posts/pages in the admin area?
- Delete Associated Media Upon Page Deletion
- How to Check if a Page Exists by URL?
- Display posts by tag on page
- What is the difference between “post” and “page” in WordPress?
- posts page – different lengths of excerpt
- WordPress automatic and permanent page
- Can I change a post to a page by changing it’s type?
- Add a custom option to a page in backend
- Creating new page with pre-defined parent page
- Populating a page with content from post custom fields
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Hide Post comments when displayed via WP_Query
- disable column on post and user list
- WP_Query do not load specifed number of post
- Can a page_id and a post_id be same?
- How can I display widget in a Page or Post?
- Differentiate between posts and pages in search results
- Getting a 404 error when clicking edit page
- Specifying # of Posts per page using inline post plugin (:
- Can I use images as anchor tags with
- Create posts under certain page
- Is there a straight-forward way to iterate over all shortcodes in a post?
- How can i display gallery shortcode output under Post text
- Switch to page template when using post permalink
- Get Page ID of blog homepage
- Pasting code into WordPress post – LFs being eaten
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Hooking into the post editing screen for an existing page only
- Shortcode to display the latest news article within a page
- How do I do a page break?
- Automatically create a new page daily with last three posts
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Shortcodes on my website stops working after theme update [closed]
- User Selectable Delete of Pages
- is_page() and is_page_template() not being differentiated
- static landing page leading to author specific pages w/ “live” content
- How to create a “latest news” page showing a list of posts from blog category
- How do you search for a post or page with a certain url on the WordPress admin panel?
- Shortcode with ‘year’ parameter
- Is it possible to add a shortcode below post title?
- Display Featured Posts Grid on Static Page (Gazette)
- Having pages after specifying post_type post
- Shortcode for tables which can include comma and linebreaks
- Adding if statement into the_content()
- Archieve page, Advertisement Every 3 Posts
- Prevent duplicate pages from being added
- Separate blog and reviews categories
- Creating a redirect option for current page url
- Display a specific category in a focused area of my site
- I want to add another search box on posts page in dashboard
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- Is there a way to find all posts with Youtube video embedded?
- Change the size of the featured image for post?
- Go back to the exact post page number
- WordPress empty page! what is wrong with this code?
- WordPress: Develop multiple posts with different data
- Remove status ‘archived’ from the default post and page view
- Parent menu item does not display posts when I add the sub-items
- Blocked posts in network tab
- How to distinguish pages created by woocommerce?
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Page with Category Returning 1
- Count posts for pagination
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- Posts in Page – How to customize the URL?
- Add category attribute to custom recent post shortcode
- Page not loading content – Body archive – page
- Display all posts/pages in a multiple selectbox
- How can i add new post on new page
- How to display a paginated list of posts from one category on a page? [duplicate]
- Change the default video URL in a post to shortcode format
- Cant retrieve $_POST inside page, just header
- how to style an individual page in a category [duplicate]
- Redirecting posts in WordPress to a specific page
- Wrap div-tag around posts in page
- If post has non-shortcode string
- When and how will php code in a user made WordPress page be executed?
- Trying to create shortcode listing custom posts, but formating not being included
- The page that displays Posts on homepage
- Post data returning null [closed]
- wordpress category Description not allowed tag
- Header and Footer options in pages and posts
- Blog posts are not appearing as subs of Blog Page