I changed the way I went about this and did this to solve it:
$page = get_page( $menu->object_id );
$output .= apply_filters( 'the_content', $page->post_content );
My information now shows up correctly.
Related Posts:
- static variable loop not working in WordPress
- Set media upload attachment link to none and hide it in WP v3.5
- How to set custom cookies before output
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- How to make an meta_query optional?
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- Change comments form title on a page by page basis
- Display only text to WordPress loop without loosing the text formatting
- Remove class that has been added by parent theme
- append PHP function to the_content
- “Maximum function nesting level of ‘100’ reached” after adding a new filter
- How do I know what variables are passed in a filter/action and what their meaning is?
- Find variables available at a given hook
- wp_get_attachment_url filter won’t accept two arguments
- Filter link to existing content suggestion
- Getting my head round WordPress filter
- Woocommerce filter cart and category specific quantity [closed]
- How to set a custom path, for ajax image upload folder in admin?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- How to call function at the bottom of post using plugin?
- WordPress php filter admin_body_class not working
- Problem adding class to body_class
- Run a filter when a walker runs
- Combine two filters into a single call
- Handling Body class based on Template
- Get_avatar filter?
- Add a class to the anchor tag on HTML5 gallery
- Nesting if statements to echo only one string based on what tag was filtered?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Input type search in Menu
- How can I remove a function that has been added to wordpress with add_filter?
- How do I add custom bulk actions to multiple custom post types?
- Show prices with tax in Woocommerce Mini Cart [closed]
- Why does my callback function not work with this custom filter hook?
- Removing “wpautop” (auto tags) only on certain pages?
- Add filter when image is uploaded?
- Remove a div from RSS feed
- WordPress Gravatar filter is removing my custom attributes
- Problem with login form
- Alter required message using comment form api
- Add filter multiple times using only one master function
- How to edit php code in WordPress Post file?
- Change page title from page using php via php executed from page/post itself
- Override a function defined in wp-includes/comment-template.php
- Content filter won’t work
- Warning: in_array() null given in PHP function
- Upload multiple files in randomly generated folder using wp_upload_bits
- Create page template via functions.php?
- How to have different site identity logos on each page on Astra Theme [closed]
- How do I create a secondary version of the_content
- Get the_content surrounded by instead of
- Get the name of menu item with wp_nav_menu
- Displaying content on posts page based on category
- How to add aria role and schema markup to custom walker container
- Can I remove or edit an include() from a function with a filter?
- Dynamically adding filters
- How to internationalize header image?
- apply_filters with several different values?
- How can I modify this code to make the search box include tags and meta
- User filter posts by year
- How to add a custom filter (by coding) before access one wordpress page ? And where to call the custom filter?
- How to sort WooCommerce products page by latest in-stock items first?
- How do I make these combination select filters work when only one dropdown is set? They work in WordPress 5.8.2 but don’t in 5.8.3
- Variation prices breakdown only for single product page
- How to run php code only for a specific widget on a page and not all widgets on that page?
- How to use apply_filters() inside a plugin class?
- Shortcodes not processing inside post content
- Multiple Tag Filtering
- I want to hide “sold by” on certain pages with id page 43
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- using filter and hook inside class
- How to bind each “the_content” elements to a custom variables
- Filter portforlio with librairie isotop
- add_filter() inside another add_filter()
- How to filter specific element of an array in wordpress/php?
- Redirecting the lost password page request when using a custon login page
- Custom Bulk Actions handler not firing
- How to generate customized filtered output for the gallery
- Add class to all meta boxes for a custom post type
- Add a leading zero to pagination
- How to apply filter
- Select All not working in a WordPress search filter
- Custom field in title
- WordPress – show all posts + ones with specific tag
- WXR XML import is stripping php tags that I need to keep
- Keeping the previous get value and add another value when submitted
- AJAX: WordPress filters inside $html do not work as intended
- Why not showing all post by default in my jquery filter
- Assign new post author IF another user in custom field on post transition
- Blog Posts not sorted and pagination not adjusted after filtering some category
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- How to change wp-admin and wp-login urls
- How to pass value to add_filter wpcf7_form_tag from another function?
- Add text below WooCommerce short description if metabox value is true
- Is there a hook that I can use when a fatal error occurs?
- How rename wp-content and wp-admin folders correctly
- Unable to logout correctly after wp-login file was modified
- WordPress query_posts with multiple tax_query
- Filtering with Attributes – how to display all non-queried products below query