You should use this (because the content saved in the post is unfiltered):
echo apply_filters( 'the_content', $post->post_content );
However, be advised that you should not alter code of plugins or themes that are not created by you. If that plugin is updated, your altered code is probably gone. For themes, you could create a child theme, but for a plugin, you might want to create your own. Creating a simple plugin that creates a widget that displays posts from a category is not too difficult.
Related Posts:
- what is correct way to hook when update post
- Custom plugin: Trying to show saved data on frontend
- Receiving Stripe Webhooks on a wordpress website
- Remove Woocommerce product link
- Check php version before theme activation
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- How can I hook into and edit the text of a wp_nav_menu tag?
- Check if page parent has certain template
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- Prevent publish status/date saved on transition_post_status hook
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Passing data between two hooks in separate HTML requests
- Is $hook a global variable in WordPress
- Replace existing content from specific WooCommerce admin orders list column
- Executing `createimagefrompng()` from save_post hook (or equivalent hook)
- Getting my head round WordPress filter
- Delete option value from array using update_option()
- enqueue hover function
- How to set a custom path, for ajax image upload folder in admin?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- using add_action for a header hook that has an additional parameter
- 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?
- How to add a second ‘place order’ button in WooCommerce [closed]
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- Handling Body class based on Template
- How to load a template-part based on a url wildcard?
- ajax, right way to do it and make it works?
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Reload part of checkout on changed shipping method
- Trying to build simple deposit code that hooks into woocommerce
- Add a product to checkout via form
- Remove a div from RSS feed
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- user_profile_update_errors hook not executing
- Set meta field to publish date + 2 weeks
- WordPress Gravatar filter is removing my custom attributes
- Error in custom php function doesn’t exist
- Return a numerical function value in Customizer controls
- Adding widgets to my plugin page instead of WordPress dashboard
- Adding function to Genesis genesis_header [closed]
- Modify custom field input data before creating a new post
- how to make custom ajax handler?
- Are all hooks/functions tied to Kses meant for sanitization?
- Why does wp_head hook my functions to the beginning of my source code?
- Pass argument to event hook
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- Should `wp_login` be used since it’s deprecated?
- Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args
- How to use a custom hook
- Run a code only on theme activation only during first activation
- Theme not calling Jquery properly
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- Get access to variable from previous pageview, excluding ajax-calls
- WordPress redirect redirecting too many times or not at all
- Why does the post_type_link hook everything twice?
- How to have different site identity logos on each page on Astra Theme [closed]
- Get user custom field value on function.php
- Send notification email to admin for every new post published
- Adding function to child theme’s function.php
- Comapare get_user_meta value
- Add a custom class to the body tag using custom fields
- Why doesn’t global $wp_query not get hooked?
- Creating customized php files in theme folder
- Dynamically Generate Functions and Hooks
- save_post trigerred twice
- How to sort WooCommerce products page by latest in-stock items first?
- Replace a single variable with add_filter
- Variation prices breakdown only for single product page
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- How do I add a function to parent theme
- Prevent header and footer from loading on specific pages with template or plugin
- Contain multiple page templates in one PHP custom template file in WordPress?
- Wp_Schedule_Event every few minutes doesn’t work
- Trouble Accessing Gravity Forms API (GFAPI)
- Enqueue assets from multiple directories using add_action/do_action
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- Custom meta box is not displaying value showing tag as empty
- using filter and hook inside class
- Discount in the specific product title using keyword ( Woocoommerce )
- How do I get the value of a current user’s custom field?
- Need to forward Data from WooCommerce Webhook sent to same site WordPress REST API custom endpoint
- add_filter() inside another add_filter()
- Getting page / post URL on publish and / or update
- Add class to all meta boxes for a custom post type
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Passing link parameter values to form
- How to add custom checkout field in user details mail template
- Cannot modify header information – headers already sent
- Send a custom notification to customer on WooCommerce cancelled order status
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- understanding wp_next_scheduled
- Add/alter image attribute before render
- Is there a hook that I can use when a fatal error occurs?
- Is there a way to pull remotely generated XML, process it, and display it on a Managed WordPress page?