I found the solution myself,
It had something to do with my code echoing out
$content = $page->post_content
... echo $content;...
I changed this to
$content = apply_filters('the_content', $page->post_content);
... echo $content;...
And now it works!
Ref: https://stackoverflow.com/questions/6405974/using-get-pages-in-wordpress-is-stripping-out-my-p-tags
Related Posts:
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Toggle Sidebar Display
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- JQuery undefined and Stylesheet loads in bottom along with js files
- enqueue script if page is not equal to
- Get the blog page URL set in Options
- What is the difference between wp_register_sidebar_widget and register_widget?
- Change admin bar to default:off
- Create “File-less” Page Template in Functions.php
- When to use esc_url, esc_html, esc_attr, and friends?
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- Override default cropping in WordPress [duplicate]
- Get password when user registers and save it sha1 into database
- Removing the default sidebar from admin panel
- Merging PHP download script into `functions.php`
- How to Change CSS Variable value in Theme Customizer Live Preview
- Is there an error in get_the_tag_list()?
- Returning Variables back into a template
- WordPress Google Maps in Custom Theme
- How can I loop into two different DIVS without repeating the DIVs
- Change date number to another language/script?
- How to add custom template tag in wordpress theme?
- Nesting Functions within Functions
- Is using eval() ok in this scenario
- Custom php page in WordPress theme?
- wp_enqueue_script being ignored in custom theme
- Getting jquery to work with custom theme
- Can’t access WordPress functions in file called via Ajax?
- Add external js file to footer with id
- Adding wp_enqueue_media(); causes problem
- Is there a theme function for is_password_protected()?
- How to correctly add JQuery in a WP theme?
- how do you create an admin interface in plugin for your theme
- How to determine which custom header image is being shown
- Including Javascript options
- How to store functions in… functions.php?
- trying to use wp_handle_upload with ajax
- Fancy-box Esay wordpress plugin fails to work on Multilingual site
- Should I use include or load_template for including shortcodes, plugins and so on?
- Check if home.php and set home.php as page_on_front
- What is the right way to set up a one-page portfolio theme? [closed]
- WP 3.1 upgrade breaks AutoFocus+ theme
- Difficulty loading jQuery with wp_enqueue_script
- jQuery not available to other scripts
- My javascript jquery won’t work?
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Should I use add_filter for functions in function.php of the theme?
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- Implementing FancyBox
- Pass variable to hook. Its possible?
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Jquery implementation not working on page reload
- How to disable controls in theme customizer?
- Theme Customizer not loading JS for live preview
- Post thumbnail to append post content via ajax click event
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- Replace function in a child theme
- Using page-id-{ID} from body_class() in local dev, versus live staging
- My jQuery is enqueued properly. So why isn’t it working?
- Change the “Default Avatar” admin option via functions.php
- Replace single_template filter with what for default posts?
- Javascipt issue on custom theme
- How to make javascript work on theme options page
- Theme not calling Jquery properly
- Weirdness in jQuery supplied with WordPress
- How to call the_time current?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Trouble in enquing all js files under certain directory
- Add content after get_header
- Can’t change theme name
- How do I implement jPanelMenu?
- How to make excerpt image be full size instead of thumbnail?
- loading javascript after jquery is loaded
- how can i remove js file from my footer in wordpress
- How to properly use AWS SES for a contact form?
- Embedding CodePen Calorie Script – jquery error
- How to enqueue scripts properly with ES6 webpack?
- change background image on scroll
- how to add jquery to wordpress
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- How would I get this to work – send to post from thick box
- FitVid not working for iframes on particular theme install
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- WordPress custom jquery not found
- apply_filters to featured image
- Set start page depending on screen width [closed]
- Mamp pro permalink issues. Pages keep reverting to index.php
- loading custom.js file after jquery is loaded
- WordPress Subpages Fancybox Trouble
- Theme now uses require.js and enqueue script no longer works
- can’t add EVENT LISTENER to a element
- Getting URL of Resized Image
- themeforce (happytables framework) implementation
- jQuery Snippet Not Working on WordPress Site [closed]