jQuery(document).ready(function($){ $('.load-post-btn').on('click', function(){ let postID = $(this).data('post-id'); $.ajax({ url: '', type: 'POST', data: { action: 'load_post_content', post_id: postID }, success: function(response){ $('#post-container').html(response); } }); }); });
Skip to content Zum Inhalt springen