Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Category #4

Open
baelinc opened this issue Dec 18, 2018 · 0 comments
Open

Post Category #4

baelinc opened this issue Dec 18, 2018 · 0 comments

Comments

@baelinc
Copy link

baelinc commented Dec 18, 2018

I am trying to change the template function file to only pull post that are in category 4 that are published... I have updated the lines in the function.php file, but the template still pulls all of the post no matter what category they are in.

query_posts( array(
'cat' => '4',
'post_status' => 'publish',
'posts_per_page' => -1
) );

Is there another location that the query is pulled from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant