Display CPT taxonomies as an archive page

You’re describing the default behaviour. Based on your code, you will have the following URLs: https://www.url.com/blog/addresses/ The archive of all Articles. https://www.url.com/blog/city/tunis/ The archive of all Articles assigned to the Tunis City. https://www.url.com/blog/addresses/article-title/ The single Article. If any of these URLs are returning a 404, you likely just need to flush your permalinks. This needs … Read more

WordPress custom post type post item data – show/fetch only on click with Javascript dynamically?

I think you should be able to do this: HTML: <a class=”view_post_details” href=”#” post_id=”<?php the_ID(); ?>”>View Post Details</a> JS: $(“.view_post_detals”).click(function () { var id_post = $(this).attr(‘post_id’); $.ajax({ type: ‘POST’, url: ‘<?php echo admin_url(‘admin-ajax.php’); ?>’, data: { ‘post_id’: id_post, ‘action’: ‘f711_get_post_content’ //this is the name of the AJAX method called in WordPress }, success: function (result) … Read more