Looks like you have the Posts for Page plugin installed. I don’t know where you have put that code you mention, but the page is generated by the shortcode, which says that output should be limited to the beauty category. You probably don’t need to write code yourself. Read the manual of the plugin and change the shortcode accordingly.
Related Posts:
- Displaying the last post on static homepage
- Having trouble with customizing blog posts on the home page
- Insert div after every three posts in home.php [duplicate]
- How to update custom fields using the wp_insert_post() function?
- Disable Attachment Pages Completely
- Inject post (from specific category) between posts in Loop
- Remove option to allow trackbacks/pingbacks from post page options
- Display posts by month
- Custom SQL query to get List of posts with featured image url
- Alter query on edit.php
- Permanently remove first image from posts
- How to get year, month and hour in WordPress?
- the_post_thumbnail() based on the Post ID
- Handling error states with admin_post
- Add Adsense code in index.php
- get_the_content if it contains multiple lines it results in SyntaxError
- Looking to exclude blog posts from category Previous/Next buttons
- Insert code when users come from an specific referer
- Handling an Ajax form submit
- Automatic Excerpt Not Working
- How to display related posts from parent category
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- How to remove this function from the homepage?
- Using a javascript file to access a get posts array
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- New Plugin Review
- Make custom field meta not display if there is not data in it
- Print number of post (in reverse)
- Use template for posts with a particular category grandparent
- Count number of published posts by type
- WP Insert Post function – Insert Post Thumbnail
- Automatically generate Post/Page from searched Database item?
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- How is WordPress manipulating the posts like there are folders?
- Get_the_author doesn’t return author name
- Styling images coming from another blog
- How to display recent posts on home page with custom HTML
- Get taxonomy terms only of the WP_Query current posts
- Exclude posts from homepage having a specified tag
- How to get 2 or multiple custom post types in wordpress functions.php
- “before delete post” action fire when the post is updated?
- Displaying a button on each post
- Trying to make php run in a post
- Hide post if matches current month and year
- Creating bulk posts with Youtube videos
- How can I hide Home in my menu in a specific page?
- Remove posts after a given amount of time
- Automatically add custom CSS to new posts using a category template
- How Display Posts on category
- Hide wordpress field if data is empty in post!
- How can I use wp_query to show all product data using just the products ID?
- Query all posts of a custom taxonomy term
- Retrieving Author ID in wp-admin area
- Getting a specific post values to another div or modal
- Trying to add attribute to my posts’ featured image
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- Best practice for migration friendly images in posts/pages?
- How to show part of the_content?
- Unreadable pagination
- 200 Rewrite blog post links
- How to set a min number of words for a blog post
- Loop through categories and display posts title under each dropdown
- Get post id in a function when edit/add a post
- how do I get a specific post from a post with a subcategory in WP
- Automatically create child pages and grandchild pages when saving a (parent) page
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- How to customize posts in WordPress by using HTML and CSS?
- How to display the date under the post title?
- Adding slides to an existing carousel manually
- foreach all the post
- How to list all the posts in a personalized page? WordPress
- Excerpt all post content Content Same Size without word cutting off
- How to create a loop that will display one post and stop?
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- Not able to see the error [closed]
- Blog Posts not sorted and pagination not adjusted after filtering some category
- Set post to draft if matching word is found in the post
- Disable single posts, but keep archive
- Add multiple HTML attributes to an Elementor button
- WooCommerce: write featured image dimensions to custom fields in product’
- How to create a WordPress PAGE in another folder?
- How do I get a function to work in single.php
- transition_post_status hook, works – but not if the post is new
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- Count the number of matching post names in foreach loop
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Bulk data save in custom table
- How to change post date and post time in WordPress automatically with a function
- How to get ACF field to show up on all posts on front end?
- Global update of records after import WP All Import Pro
- Display posts based on the selected category when no subcategory is chosen
- Display two previous posts on single.php
- (plesk)After adding 1000 youtube url to my 1000 different wordpress article, my all websites doesnt show yt url as embed
- change the blog in the url if you go from a specific page wordpress
- How to make posts_like_dislike reference current post when iterating?
- Category Attachment Pagination 404 Error on 2nd Page
- Warning: Undefined variable $post_id
- Issues applying JSON body filters in EU F&T Portal SEARCH API with WordPress integration
- How to display only the first 2 words of a post title