I have been struggling with a problem, I have a webpage running on WordPress, most of the things work as expected, except one: in the blog section page (the one that is configured in settings/reading -> Posts page), all posts are shown. I have a specific category that should be presented there, but I don’t know how to alter the loop to work as expected. Here´s the code of the index page:
I use a static page (Blog) to display the latest posts. I want to show the excerpt of that page next to the title. However, wen I use
wp_kses_post( get_the_excerpt() ), I get the excerpt of the latest post from the post archive loop. I also tried with
wp_kses_post( get_the_archive_description() ) but it also does not seem to work.. Any idea how this can be done?
I’m trying to get my news page to display content from one category only (number 3) but I cant seem to get it to work. Instead of just displaying posts from category 3 it displays posts from all category’s.