Generally we set wordpress permalink from setting option. but if you try you can set permalink in your wordpress without setting option. but do you know? how to change the permalink in wordpress without any plugins? for this you need some code. if you want to get this then follow bellow steps:
1. At first go to your wordpress sites admin panel.
2. Choose edit on your current theme.
3. Then select ‘functions.php’ file.
4. Now copy bellow code
// set permalinkPROBLEM COPY? TRY HERE!!
function set_permalink(){
global $wp_rewrite;
$wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%postname%/');
}
add_action('init', 'set_permalink');
5. After copy code paste in your current themes 'functions.php' file and save.
Now your permalink is changed. i am sharing bellow some permalink structure for you. please see this:
/%year%/%monthnum%/%day%/%postname%/Thanks for visiting my blog and reading my article.
/%year%/%monthnum%/%postname%/
/archives/%post_id%
/%postname%/
Filament
ReplyDeleteIn a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.