If by “post processing” you mean the autoformatting, the shortcode processing, that sort of thing, then you want to pass the content through the the_content
filters.
$my_id = 7;
$post_id_7 = get_post($my_id);
$post_content = $post_id_7->post_content;
$post_content = apply_filters('the_content',$post_content);
http://codex.wordpress.org/Function_Reference/apply_filters
You can see much of what will be applied by default by looking at the source of wp-includes/default-filters.php
. However, plugins and themes can add filters so you may find that you want to pick and choose what gets applieds.
Related Posts:
- How to include PHP files in plugins the correct way
- What’s the difference between term_id and term_taxonomy_id
- Prevent network activation of plugin
- How are bulk actions handled in custom list table classes?
- WordPress updates defined vs add_filter?
- Creating Settings Page with dropdowns for Plugin
- Empty POST data on server on AJAX request using Angular $http
- Custom Nav Menu items default to ‘menu-item-type’ => ‘custom’. How to make a “page” menu item?
- How to tell if an option has been created vs an empty option?
- What are the default WordPress password requirements?
- Can I get all options using the option group id? [closed]
- Actions or filters fired when data is saved in a custom table
- Implementing namespaces in plugin template
- How to get current page name in my wordpress plugin
- WP Cron doesn’t save or in post body
- Conditional add_filter?
- Use register_taxonomy() in register_activation_hook()
- Pages 404 in wordpress
- How to update/auto-update my private plugin? [duplicate]
- How to use WP default post list tables in a plugin?
- Calling apply_filters on non-documented hooks
- Commit changes to WordPress Plugin SVN with TortoiseSVN
- Why is WP_Mock not used instead of WP_UnitTestCase for writing unit tests by most plugins?
- add_shortcode is not working [duplicate]
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Using Checkboxes on Plugin Options Page for Custom Plugin
- Create a Page via plugin
- Generating User(s) with Settings API
- Processing shortcodes in groups (separated by line breaks)?
- How to get the ID of the currently logged in user?
- Extend a class plugin
- Using a Shortcode to Replace Themes Stylesheet?
- Where should I put “run once” plugin pages?
- Slow WP_query due to nested wp_query. Need Suggestions
- Plugin Development Output
- How to modify product page for Jigoshop
- Is @wordpress/env locked to node v14 or can I also use node v16?
- Securing/Escaping Output of file content – reading via fread() in PHP
- Intermittent database errors when accessing WordPress database
- How to create a “View” page for entry in add_menu_page wordpress admin area (CRUD operation)
- what is the standard ulr for wordpress plugin development?
- Customize WooCommerce my account dashboard through plugin
- Create a custom capability to allow an ‘Editor’ to edit only ‘Subscriber’ users
- global $current_user not current user
- What is the proper way to get logged in user id in a plugin?
- Custom WordPress Plugin will install new and not update
- get_option() will not work without access to wp-config.php
- register_activation_hook on multisite
- WordPress Plugin Activate / Deactive Failing
- How can I add a simple custom field to my plugin?
- Ajax is not working in a loop
- Bind a function with its own argument to show something dynamically after every content
- Inserted double quote when prepending to the_content
- unable to wp_enqueue_script(‘suggest’);
- Plugin development – loading Javascript and Flash
- Drawing the line between theme & plugin on large scale bespoke projects
- update_post_meta doesnt update template
- Update variable value via add_filter
- Setting global block attribute value
- Plugin custom post template; without overriding all posts
- Run uninstall.php if a checkbox is checked from settings page
- How to check whether checkbox is checked in WordPress customizer
- Gravity Forms Anchor only on Front Page?
- Multiple page plugin settings
- sanitizing/escaping plugin options
- how to get the top 10 popular blogs
- How to output CSS to the beginning of the stylesheet in a WordPress Plugin
- can’t access some WordPress function from my plugin
- Set page to draft on plugin deactivation
- Can one plugin activate another plugin via script?
- script seem not load with use wp_enqueue_script
- Insert and read media from the WordPress library and call in the plugin
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- Transform internationalized plugin into internationalized mu-plugin?
- Override woocommerce loop-start.php from theme using plugin?
- Get value of custom checkbox from Gutenberg sidebar in plugin
- Enable a role named ‘backend_user’ to access my plugin pages
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- jQuery dependent script ignores $in_footer bool and doesn’t work in header
- Hiding class namespace from plugin’s extensions
- Relational / Associate tables using native WordPress functionality
- Changed media upload path for plugin, but generates error & shows wrong url
- Pull commentdata for pre_comment_on_post from comment_post_ID
- Woo-commerce: Adding additional page sections using a child theme
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Get the post ID only off single page
- How to get html tag ids from template?
- Bootstrap collapse in custom WordPress widget
- Page reload occurs before request finishes
- PHP Fatal error when using plugin_basename
- How to Rewrite WordPress URL for a Plugin
- How to Prove Ownership of plugin [closed]
- how can a plugin return an error message on activation?
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Reading the inside of
- WordPress, GIT, Renamed Plugin Dir + files – Working Code now Broken [closed]
- get_term_by() returning null on plugin
- Find Any Theme’s page.php File
- WP Job Manager – Show recent jobs as cards
- Admin Menu for New Post