Permalink for blog list & category

4 posts by 3 authors in: Forums > CMS Builder
Last Post: January 14, 2016   (RSS)

By ross - January 6, 2016

Hi Hiroko

Thanks for posting.

Does your code work when Permalinks is disabled? 

I think the issue here is going to be in the code and not specifically Permalinks so disabling the plugin will help us narrow down what's happening.

Let me know.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

By hiroko - January 8, 2016

Thanks Ross,

I'm not sure what you mean by disabling Permalink ...

If I deactivate the permalink plugin, I cannot check the url and there will be a php error.

The url

http://www.kunsyodo.com/kaitori-history/?category=1

works fine whether the plugin is activated or deactivated.

This is the url I would like to use to show the exact same thing as the url above.

http://www.kunsyodo.com/kaitori-history/

I will attach the file.

Thank you for your support,

Hiroko

Attachments:

blogCategory.php 11K

By gregThomas - January 14, 2016

Hi Hiroko,

I think I understand the problem, you'd like the category URL variable to appear in the permalink so that the site users don't have to see it, and you can have custom permalinks for each category? You can do this by manually setting up the permalinks in the Permalinks DB. 

To manually set up a permalink, log into your CMS, then navigate to Admin -> Plugins -> Permalinks DB (In the right hand column of the entry for permalinks in the list). Here you'll see a list of all the permalinks in the database. Next you need to manually create a permalink by click the create button. Now you need to set up your permalink, I think it needs to look roughly like what I have added in the image attached to this post. 

This works because when the system detects the permalink in the URL, it not only redirects the user to the correct file, but adds the category to the URL as well.

Let me know if you have any questions. 

Cheers!

Greg

Greg Thomas







PHP Programmer - interactivetools.com
Attachments:

CMS Builder.png 38K