Make a wordpress category into a page -


Then in WordPress, there is a list of pages in my navigation. Home - Video - Blog

Shows every blog post regardless of category "Home". How can I show videos and blogs in particular from the "blog" category or "videos"

Thanks Greg

You can do it in a few ways.

First of all, this functionality is built in WordPress. Each category can be said by URL:

The URL / category / section is the default WordPress and you can see it in Settings | Parameter in the optional section.

The second way is to create a custom page template and you must use the query_posts () function to include or exclude whatever categories you want. The syntax is:

  query_posts ('cat = 1');   

To get all the posts in category ID 1 (Use post | to get ID number) If you want a two-page page: < Pre> query_posts ('cat = 1,3');

To exclude the range, return everything else:

  query_posts ('cat = -5');   

query_posts () is very flexible and takes a bunch of different arguments. You can spoil for it.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -