- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
hi guys , i’m really new to word press but not Php , i have made a blog that has four links index,tutorials,websites,aboutme , what i want is how to make the posts relative to the page (without using category) .
lets say the website name is codedesign
codedesign/websites/
show all of the websites post
codedesign/tutorials/
show all the tutorial posts
any help , i’ll appreciate that .
So you want to show all posts in the category “websites” by going to http://yoursite.com/websites and specifically NOT http://yoursite.com/category/websites ?
You might want to just edit the .htaccess file.
yes , http://mysite.com/websites/website_num_1
, http://mysite.com/tutorials/tutorial_num_1
,…
and so on , so what’s htaccess ? :D
In that case (you want to control the url of individual posts, not the entire category it seems), you probably just need to change your permalinks settings in the WP admin to:
%category%/%postname%
ty for this solution sneff , just one more stupid question
https://css-tricks.com/snippets/
it show’s all subject that related to snippets , how simply do that in wordpress
should i use posts_query();
Senff not sneff
A couple of ways of doing that.
If the snippets are of a custum post type: create a page with permalink http://yoursite.com/snippets. Have this page use a custom template. In this template, code a query that lists all posts of type “snippets”. See http://wordpress.org/support/topic/show-all-posts-of-a-custom-post-type?replies=3 for more details
OR…
If the snippets are regular posts but in cagtegory “snippets”: the normal URL would be http://yoursite.com/category/snippets. Use .htaccess file to forward/redirect http://yoursite.com/snippets to http://yoursite.com/category/snippets
OR…