Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1168
    GB3
    Participant

    How can I setup News Manager to load in a custom subdirectory? Here is the example where News Permalink is set to “thenews”:

    Wordpress Install loads here:
    http://example.com

    News Manager loads here:
    http://example.com/custom/thenews/2013/10/24/

    News Tags load here:
    http://example.com/custom/thenews/tag/

    News Categories load here:
    http://example.com/custom/thenews/category/

    Thanks in advance for your help :)

    #1172
    Bartosz
    Keymaster

    @GB3 – what you mention is a permalink structure, not the directories structure.

    If you want to change the news slug, you can do that in permalinks setting: modify it from “news” to “custom/thenews”. Is that what you are trying to achieve?

    #1176
    GB3
    Participant

    @Bartosz – Yes that is what I’m trying to achieve but when slashes are removed by the Permalink field when added in the News Manager settings. The Permalink looks like this:

    http://example.com/customthenews/2013/10/24/

    when entered as “custom/thenews”

    #1177
    Bartosz
    Keymaster

    Oh, I see. That’s because of the security check – we’re using sanitize_title() function and we’re not going to change that. However you can do so on your own risk – line 839 includes/settings.php

    Change this:

    $input['news_slug'] = sanitize_title($input['news_slug']);
    

    to something less sctrict:

    $input['news_slug'] = sanitize_text_field($input['news_slug']);
    
    #1178
    GB3
    Participant

    That worked perfectly.
    Is that something you would consider changing in a future version?

    #1180
    Bartosz
    Keymaster

    No, we’re not going to change that. But as long as you don’t save or reset permalink settings future updates won’t modify that.

    #3870
    Freddy G.
    Participant

    Hello I’d like to do a multilanguage page and use polylang. My Permalinks shows the Countycode after the domain (e.g. http://www.domain.com/en/news/…) I have to rename all pages, who should display the news as ‘news’ in the titelform. It works, but if I click on a news the url change to http://www.domain.com/news/somenews/ and the 404 comes out :( Is there a solution to make it multilingual?

    #3871
    Bartosz
    Keymaster

    This is multilingual plugin. We’re using this with Polylang and WPML on multiple sites. Please crate separate topic and describe what you’d like to achieve in detail.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.