简体   繁体   English

具有永久链接的WordPress自定义URL

[英]WordPress Custom URL with Permalinks

now i want to use standard url Like http://localhost/websitename/categoryname/ while passing value in href, in wordpress Hi i have two table one is category and another is product in admin panel i insert category and sub category and insert product according to category. 现在我想使用标准的网址,例如http:// localhost / websitename / categoryname /,同时在href中传递值,在wordpress中,嗨,我有两个表,一个是类别,另一个是管理面板中的产品,我插入类别和子类别并插入产品根据类别。 in front-end i displaying subcategory under category and now want when anyone click on subcategory it will redirect in to next page such as http://localhost/websitename/categoryname in this page display all product under particular category. 在前端中,我在类别下显示子类别,现在希望当任何人单击子类别时,它将重定向到下一页,例如此页面中的http:// localhost / websitename / categoryname ,显示特定类别下的所有产品。 Right now using ?id=125 and aacording to this particlar category id product are displaying how can i cahnge url 现在使用?id = 125并根据此特定类别ID产品显示如何更改网址

转到设置->永久链接,然后自定义,将其粘贴:

/%postname%/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM