• Resolved stellablue32

    (@stellablue32)


    Hi,

    I didn’t realise that with this plugin your news page can’t be named just ‘news’. I renamed it to ‘latest-news’ and now the page is working fine, but for individual news stories the design isn’t appearing correctly and I think it’s because the link is still just ‘news’ rather than ‘latest-news’.

    How do I change this on existing news stories, and make sure it defaults to ‘latest-news’ going forwards?

    Many thanks,

    Kate

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Step 1 :- Please go to your active theme function.php file and add below code.

    function wpnw_free_modify_news_post_slug( $slug ){    
        $slug = 'info'; // Write your desired slug    
        return $slug;
    }
    add_filter( 'wpnw_news_post_slug', 'wpnw_free_modify_news_post_slug' );

    Step 2 :- Please go to admin panel Setting–> Permalink and under Permalink setting, click on

    1) Plain radio button and save.
    2) Once done, again click on Post Name radio button and press save. This will fix your issue.

    Let me know if you have anything else.

    Thanks,

    Thread Starter stellablue32

    (@stellablue32)

    Hi Ketan,

    Whereabouts do I put the code within the function.php file?

    Thanks,

    Kate

    Thread Starter stellablue32

    (@stellablue32)

    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    You want to change the post type slug so please add the above filter in your theme function.php file and follow the above step.

    Please check and let me know if you anything else.

    Thanks,

    Thread Starter stellablue32

    (@stellablue32)

    @patelketan Thanks. I’ve managed to successfully change the slug for the individual news posts, but it has not changed the fact that the design is not appearing correctly. How do I alter this?

    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching here.

    Please share a screenshot of which design you want to change.

    You want to change the single page design but this functionality depended on your theme so please check and change the theme single page.

    Thanks,

    Thread Starter stellablue32

    (@stellablue32)

    Hi @patelketan

    It is this page (and all the other individual news pages) – https://www.oslbloodstock.com/info/salute-the-group-1-winner/

    It has lost all the formatting (e.g. there should be a banner across the top, as per https://www.oslbloodstock.com/nominations-shares/). Theme is Neve.

    Thanks.

    Plugin Support Riddhi Shukla

    (@ridhimashukla)

    Hi,

    Thank you for sharing details…

    You have shared single news page link which will manage by theme not from plugin.

    So you have to ask about the design related change to theme developer or you can manage it by self if you are aware about little bit coding.

    We can manage only news listing with different design layout, but it’s single page design will be different for all themes so it will automatically set your theme layout. We are not any change related to single pages.

    Please check and let me know if anything. I am here to help you!!

    I had same issue and followed carefully your steps. the new page is Latest-news slug now, the old one was news as the slug.. but even after updating the page name and loading the list to the new page, and updating the link to the news page on the site.. the articles are still showing fpuagas.com/news/article name/ for path.. not fpuagas.com/latest-news/article name/ for path. Do I have to recreate all the articles ???

    I tried the permalinks in staging and in live and it did not fix the article links.. only the main link. I hope this is not the fix.. otherwise I will have to look at a new plug in, this cost me two days work because of the silly slug name. That is tuff.

    I also cleared the cache,and dynamic cache on both staging site and live site and still.. no luck. Your help is greatly appreciated.

    I also tried this in my child theme and it broke the site until it was removed..

    function wpnw_free_modify_news_post_slug( $slug ){    
        $slug = 'info'; 'latest-news'  
        return $slug;
    }
    add_filter( 'wpnw_news_post_slug', 'wpnw_free_modify_news_post_slug' );

    Could it be that is should be reading this instead..

    function wpnw_free_modify_news_post_slug( $slug ){    
        $slug = 'news'; 'latest-news'  
        return $slug;
    }
    add_filter( 'wpnw_news_post_slug', 'wpnw_free_modify_news_post_slug' );
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to change permalink for individual news posts’ is closed to new replies.