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
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Best way to eliminate xmlrpc.php?
- SSO / authentication integration with external ‘directory service’
- How to validate XML-RPC post creation and cancel when needed?
- Set default custom post type for XML-RPC
- custom XMLRPC method plus authentication of user & WooCommerce order
- X-Pingback and XMLRPC
- 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?
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Best way for plugin to accept POSTs?
- How to disable XML-RPC from Linux command-line in a total way?
- PHP library that can merge stylesheet with inline style [closed]
- Overwrite default XMLRPC function from plugin
- XML-RPC and Custom Post Types
- Help Me Choose RSS or XML-RPC
- Turn off Admin Bar (Toolbar) in backend – no easy way
- How to activate plugins for my WordPress sites from a remote server
- Checking post format during xmlrpc_publish_post
- How to stop xmlrpc attacks without disabling component to allow JetPack to work in WordPress?
- XML-RPC errors they know my username?
- Execute upgrade-theme with coding
- XML-RPC: How to add media caption to uploaded image?
- How to block XML-RPC attack?
- XMLRPC slow and weird websites/services
- Multisite -> XMLRPC
- Remotely search WordPress sites using xml-rpc
- Call specific plugin update
- Can I Remove xmlrpc.php completely?
- wp.getComments is returning nill, when i called from my iphone app [closed]
- Queries take 120+ seconds on my large WordPress site
- Checking for origin of a xmlrpc request
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- xmlrpc how to check for errors
- Using Microsift Word/Outlook for content publishing to WordPress
- Post via wp-admin and via iOS app, same hooks and triggers involved?
- Can I disable xml-rpc by setting it to false?
- Azure WordPress deny access to xmlrpc
- Regular XML-RPC timeouts
- XMLRPC pingback.extensions.getPingbacks not work with parameters
- API WordPress is Limited? Return False
- 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
- Create a “feed” from one WordPress site to another?
- Getting the Posts’ permalinks from XLMRPC
- XMLRPC: How to retrieve possible custom fields for a new post?