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
- pass object/JSON to wp_localize_script
- Using classes instead of global functions in functions.php
- 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]
- How to alter the text of the post “Excerpt” box label in WordPress post editor?
- 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
- Allow users to add custom functions to wordpress theme
- 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
- How can I customize wp_footer, where is the code that controls what this function does?
- How to list all images in uploads directory except those that are attached to any post
- Adding wp_enqueue_media(); causes problem
- More than one meta field in a single meta box?
- 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
- 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
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Add content after get_header
- Can’t change theme name
- How to set default values for edit_post_link() in my theme?
- How do I implement jPanelMenu?
- How to make excerpt image be full size instead of thumbnail?
- loading javascript after jquery is loaded
- MapPress Easy Google Map in Jquery Tabs Problem
- I don’t think WordPress is loading jquery or bootstrap js
- 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 load jQuery with Ajax in WP version 5.3.2?
- How to enqueue scripts properly with ES6 webpack?
- Infinite scroll without plugin using ajax
- change background image on scroll
- how to add jquery to wordpress
- jQuery conflict in WordPress, works fine in HTML
- 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
- Passing a location-dependent array via wp_localize_script within a shortcode
- 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
- Creating custom function in wordpress to return data from database
- Getting URL of Resized Image
- Adding a new layout for genesis
- themeforce (happytables framework) implementation
- jQuery Snippet Not Working on WordPress Site [closed]
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- WordPress Includes mejs 404 error