Blog Page Shows “Not Used”
-
Hi everyone, so I’m having a problem where my Blog page is not displaying posts.
- I tried creating new posts and assigning every possible categories and tags, or none of them, and no post is shown in the page.
- I also tried to assign the Blog page in the “Posts page” field in the Customize appearance menu, but then the page goes blank and there’s just a simple HTML non-stylized text saying “Not used”
- I tried clearing the caches, but it didn’t change anything.
However, the individual posts are working (example). Also, in the Blog page I noticed an error in the Inspection Console of my browser, and the error comes up again everytime I click the “Load More” button (which probably tries to fetch the blog posts, but seemingly isn’t able to?):
GET https://www.kaira.ai/wp-admin/admin-ajax.php?dataType=json&action=filter_tags&tag=0&cat=6&page=2 400 (Bad Request)Sorry if this was discussed anywhere else, but I looked as much as I could and no one seems to talk about this exact problem.
Thanks in advance :)
The blog I need help with is: (visible only to logged in users)
-
Okay so I narrowed it down to Ajax and jQuery. The problem seems to be coming from the fact that the posts fetching function isn’t found (as why the error 400). Here’s the code calling to fetch the blog posts:
function fetchPosts(value, callback){ jQuery.ajax({ url: getAjaxBaseUrl() + 'wp-admin/admin-ajax.php', type: 'GET', data: { 'dataType' : 'json', 'action': 'filter_tags', 'tag': value, 'cat': <?php echo $category ?>, 'page': page }, success: callback }); }I also verified in the database and the posts are there and are accessible.
Not sure where to go from there, does anyone have an idea?
- The topic ‘Blog Page Shows “Not Used”’ is closed to new replies.