When you add content to the post_content, WordPress wraps its own tags around everything and removes certain tags (such as script tags).
Plugins, such as Visual composer let you add raw JS, ie. your script tags.
However, if you don’t want to use a plugin, you can add it directly into your page.php or footer.php (if you want the script for all pages, above closing tag).
For example, if you want this for only your home page, you could create a home.php by duplicating your page.php and renaming it home.php (https://developer.wordpress.org/themes/basics/template-hierarchy/)
Or, if you have a page other than home, you could always duplicate page.php and rename it page-yourpagename.php and insert it there.
Related Posts:
- WordPress as XML-RPC client?
- How to enable wpautop for XMLRPC content
- Extending xml rpc – best practice
- How do I know if my site is using the xmlrpc.php file?
- XML-RPC: Add category to post data
- How Enable XML-RPC in WP 4.8.2
- XMLRPC and Underscored custom fields
- Creating post content from external web scraper via JSON or RPC
- wp.getUsers XML-RPC method is returning only 50 users, how can i get all the users
- xmlrpc.php Returning 405 Response Code
- Restrict access to xmlrpc.php
- Simply deleting XMLRPC file
- Storing an XML Response (Transient)?
- Problem with Create Post using metaWeblog.newPost or wp_insert_post
- Is it possible to change a blog’s theme through XML-RPC command? (and if so how?)
- How pull wordpress blog data using Blogger API using python
- Create a new post in wordpress with XML-RPC with the correct GUID?
- Working code example of PHP XML-RPC connex to site?
- Automated posting to wordpress from commandline or XMLRPC API on Dreamhost
- Posting via HTTP requests?
- Why is minimum_args protected?
- Multiple new posts using XML-RPC?
- Is it possible write, publish and edit posts with WordPress from console aka terminal?
- How to enable xmlrpc in WordPress 5?
- modify post meta data remotely without xmlrpc
- XMLRPC newPost post_content issue
- Can XMLRPC set show_on_front/page_on_front?
- Send an extra parameter with xml-rpc login?
- Is there any image size limit for wordpress xml-rpc?
- XML-RPC and $wpdb
- XMLRPC won’t connect?
- wp.setOptions of the XML-RPC API does not appear to work
- How to list updates using WordPress XML-RPC methods
- Is XML-RPC still a security risk?
- Get Post meta via XML-RPC using wp.getPost
- How to process shortcodes in XML-RPC
- “XML-RPC server accepts POST requests only” error message
- New post created with XML-RPC works fine but fails to assign category
- Tagging posts to custom taxonomies using XMLRPC in R
- Getting all posts from an XMLRPC request [duplicate]
- not well-formed (invalid token) at line 15, column 51, byte 720 when trying to parse XMLRPC call
- XML-RPC aplication blocked by the hosting
- Weblog clients cannot retrieve posts: An invalid hexadecimal character (0x7) was found in the element content of the document
- Using XML RPC to import data into WordPress
- Page content sent from XML RPC is corrupted
- metaWeblog.getRecentPosts is returning nothing in my iphone app
- How to read newpost return post ID value as integer for xmlrpc
- Enabling XML-RPC Accross 500 blogs
- Retrieve username and password from XMLRPC request
- XMLRPC System Multicall and BruteForce
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- SSO / authentication integration with external ‘directory service’
- How to validate XML-RPC post creation and cancel when needed?
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- xmlrpc_enabled filter not called
- Set default custom post type for XML-RPC
- custom XMLRPC method plus authentication of user & WooCommerce order
- PHP XMLRPC for WordPress: Adding meta tags and description
- Store source permalink on XMLRPC calls
- wp.getUsersBlogs XMLRPC Brute Force Attack/Vulnerability
- Most efficient way to insert a post outside WordPress?
- Disable links in header (feeds and such)
- How to get all posts (in chunks) via XML-RPC?
- How to secure WordPress XMLRPC?
- get total number of images from media using xml-rpc
- Best way for plugin to accept POSTs?
- wordpress inserting posts programatically through a url
- Attach to wp-login.php and xmlrpc.php
- Block only external access to wp-cron.php on OpenLiteSpeed
- Help Me Choose RSS or XML-RPC
- WordPress can’t find IXR_Client
- XMLRPC filtering through htaccess not working
- How to activate plugins for my WordPress sites from a remote server
- Execute upgrade-theme with coding
- How to block XML-RPC attack?
- Multisite -> XMLRPC
- Remotely search WordPress sites using xml-rpc
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Can I Remove xmlrpc.php completely?
- wp.getComments is returning nill, when i called from my iphone app [closed]
- How do I disable XML-RPC in WordPress Multisite?
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Queries take 120+ seconds on my large WordPress site
- Checking for origin of a xmlrpc request
- Access post ID in “content_save_pre”
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- xmlrpc how to check for errors
- Azure WordPress deny access to xmlrpc
- Avoid duplicate posts with xml rpc
- Regular XML-RPC timeouts
- XMLRPC pingback.extensions.getPingbacks not work with parameters
- Using the GetMediaLibrary() method in python-wordpress-xmlrpc.media, how to iterate over the result?
- Why none of xmlrpc filters work
- Insert custom post type via XML-RPC?
- Manage multiple wordpress installs (Best Practice)
- Custom xmlrpc request does not pass parameters?
- Modifying WordPress XML-RPC Built-Ins
- XML RPC post produces immediate revision with odd post_date_gmt
- Clean/filter HTML inserted to post content by XML RPC
- Create a “feed” from one WordPress site to another?