I think what’s happening is that the jQuery is not able to destroy the element because it is not wrapped in the .random-post
li
. Try adding that back in and see if it fixes your code.
Also, just a note, you added a space in random-post-excerpt
that was not there in the original.
Related Posts:
- Display wordpress post’s in popup?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Where Should i write the code for wordpress ajax voting?
- Capturing POST data
- Cron job not firing
- Form isn’t inserting data into database with ajax plugin
- Solutions to repost categories into multisite blogs?
- How to enable qTranslate languages tabs in custom plugin page
- How do I “get the next 10 posts after post_id == x”?
- Hiding posts – WP Hide Post not working
- What’s the best way to implement AJAX in WordPress?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- submit posts by unregistered users in wordpress
- How to put JQuery/Ajax inside shortcode?
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- Is there an easy way to flag posts in the admin area?
- AJAX search posts and pages
- WordPress Ajax Posting from App
- finding whether request is for post, and post id
- __callStatic method handler passed to add_action causes bug in PHP
- Any built-in function to associate a post to category through a plugin?
- How to hide some section in WordPress under Post
- Using a custom plugin to capture input data via Ajax and PHP
- Display post lists in 2nd paragraph
- Can’t delete Draft Post [closed]
- Matching Chapters to a Custom posts [closed]
- Ajax contact form widget plugin data not insert in database
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- Why WordPress plugin url ajax doesn’t work?
- WordPress display breadcrumbs using Yoast plugin [closed]
- Outbound link autometic converted into linkdirect , and not opening
- wordpress, search form using ajax
- jquery not calling php function
- Display by Category in Admin
- Search for categories
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- AJAX in plugin wp_send_json() sending html
- Two problems on my WordPress installation [closed]
- posts comments goes to trash
- Contributive page where people logged in can write
- Best place for if/else piece of code related to custom plugin?
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Excerpts on category page
- How to pull email and name from Flamingo plugin
- Ajax call returning 0
- Which widget to use for display category post with view more? [closed]
- Ajax with plugins returns 0
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Ajax fail and get 504 error
- Ajax Search Lite: Customize Autoscroll
- External RSS feed to WordPress Portfolio
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- WordPress Integration with Google Groups
- Best place to load wp_ajax_the_ajax_hook action in plugin
- jQuery.post not working within shortcode – WordPress Ajax
- Create tabs in admin options page from custom post type loop
- How to load wp_editor via AJAX
- How can I inject options into an select tag inside the widget form?
- Init plugin again after ajax call finish
- Using AJAX to generate front end / viewer end pages
- Using color picker in plugin, does input attribute order matter?
- How to handle cookies from a WordPress plugin on a cached page?
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- wordpress file upload with ajax when site is ajaxyfi
- Unable to add TAB character to post?
- Post Comments with Ajax in WordPress
- AJAX search as you type? [duplicate]
- how to add text to posts from tags
- WordPress api call using wp-ajax returns error 400
- Add category selection to custom post type (plugin)
- AJAX call – failling to call do_action
- how to insert data in wordpress table usnig jquery ajax
- Using wpdb without loading all plug-ins via wp-load.php
- What are the Best Practises When Using AJAX in Plugin Development?
- Redirect to another page using contact form 7? [closed]
- Would Gutenberg be considered a PlugIn?
- pagination on data fetched using SQL query
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- How to delete all trashed item in one-go
- Call plugin with php function
- How to get the first post and second post in a wordpress blog?
- Is it possible to send blog posts via email to subscribers?
- Custom setup of wordpress comments that are displayed
- Is there any plugin which can paste a common content to my every post?
- Recent posts per category loop?
- ‘Organize Series Plugin’ as muti author feature
- Render Modula Plugin Shortcode On Ajax Request
- Import Instagram post to WordPress blog post
- Problem of encoding characters (apostrophes) in my posts publications
- AJAX on Front-End Button Click not working – Custom Plugin
- How to backup single post in wordpress [closed]
- How to handle WordPress Plugin Front-end AJAX Call [duplicate]
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- Submit Form data to another page via Ajax (WordPress Way)
- AJAX Load more start with x posts