Ok, so based on your comments, the problem as those pesky
tags… WordPress is nasty with those, sometimes.
As I said, it might be worth looking into a plugin that lets you add javascript to specific posts/pages.
In the meantime, I suspect things should work if you put your whole javascript tag on one line (no newlines)… Not easy to read, but it should prevent WP from adding
tags in your javascript:
<script> jQuery(window).load(function(){ jQuery(".slidingDiv").hide(); jQuery(".show_hide").show(); jQuery('.show_hide').click(function(){ jQuery(this).next().slideToggle(); }); jQuery('.slidingDiv').click(function(){ jQuery('.slidingDiv').slideUp(); }); });</script>
Hope this helps!
Related Posts:
- Confirmation box when submitting post for review
- Ajax Load More Posts in Category Page
- Dynamically update post title in admin page
- Getting an alphabetic post list with two letters onclick on letter
- How to load post content on index page using ajax when post title in sidebar is clicked
- POST from jQuery to PHP
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- “Uncaught SyntaxError: Unexpected token
- Add confirmation popup on “Move to Trash”
- The correct way to call posts with ajax
- How do I use Ajax to show the new posts realtime, on the frontpage
- How to create a load more post entries like Twitter?
- Disable Jquery UI post tabs
- jQuery inluclude still seems ncessary for script to work within post
- Ajax load more button in Recent posts widget
- Ajax Dynamic Archives not showing correct results
- WP_Query with ajax handler returns the same posts
- Ajax post filters not working
- Ajaxify This Code
- Genesis + Ajax + Jquery | Failling to call action
- How do I locate the exact location where this error is occurring 404 page not found
- Do all wordpress themes a similar class name for content?
- Security to delete post by Admin
- add bootstrap post slider with tabs
- Use Click Image to Play Youtube Video in a WordPress Loop
- Call current post URL in ajax
- datepicker value in mysql
- Adding JS functionality to the Publish button in wp-admin/post.php
- displaying the categories post
- Using the loop to set locations for all posts on a single google map
- Many buttons not functioning in WordPress dashboard (as admin)
- Ajax post doesnt call succes after got the response
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Printable Page with all Posts from Tag
- problem with creating a wordpress post slider
- Problem with jQuery in post body?
- WP Load post with ajax and apply isotope
- Run Jquery Script after delete post in front end
- Get post id on click of thumbnail
- jquery: getting contents of #content field on post page
- Full width images within post content
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- Post featured image column on admin post list page
- display all posts in wordpress admin
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- When and Where is `global $post` Set and Available?
- How to Sort Custom columns in admin
- Shortcode Not displayed at the Right Place [duplicate]
- Post visibility on the basis of roles
- List only child categories a post is in, of a specific parent category
- How to change post status from publish to draft using hook in wordpress?
- How to output comments number of a post per day?
- Auto Refresh Post List after X seconds
- How to show video from specific category on sidebar?
- Display posts with comments closed, with pagination?
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- can’t use the page_test method to check pagination
- post re-order on my site
- What is the Better way to manage posts in WordPress?
- How to check a post exist when the permalink has post id in it?
- Post body text occupying featured image space before it loads
- User levels and post visibility
- Multi row post list
- Hook in to add new post link wp admin?
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Tell WP to use a specific template file in posts
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- How to get post content from an array of ids?
- Hide custom metabox value from custom fields
- Images showing up in Post Editor, but not in Published Post
- WordPress pagination and Post Navigation not working on home page
- Custom Fields for Author Box
- Custom home page with full post for first one only
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- Load widget only on blog posts
- Change the background of each post according to the category
- Issue with first top post display order
- List latest posts with least comments in WP-Admin
- Widget to show posts in the sidebar basing on its IDs
- How to create a list of links to post with specific category
- Page of posts made to look like homepage
- How can I to add upload functionality outside of the admin area?
- get category in list of posts // shortcode for custom related posts
- How to limit number of posts on AMP homepage
- Related post not showing table of content
- What is proper filter or hook action to add data to the $post object?
- Added a ACF field to custom page and want the results to show as a column in admin
- How publish post from pending status
- How to reload a post page editor after published?
- How to prevent clicking on posts
- Custom author search
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- unused post IDs
- Combining multiple conditional statements [closed]
- First post in loop displays twice
- Export Posts Without Categories In An XML File
- WordPress + Polylang – Error 404 when trying to preview draft post on different language