$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Change default URL path (blog) of blog posts|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Change default URL path (blog) of blog posts

matteradmin9PV0评论

I've tried to research prior questions on this topic but I believe that there was a better solution within the WordPress admin. How does one change the default URL path for blog posts?

It was previously */blog/title-of-post (but now the /blog/ part is gone).

I've tried to research prior questions on this topic but I believe that there was a better solution within the WordPress admin. How does one change the default URL path for blog posts?

It was previously */blog/title-of-post (but now the /blog/ part is gone).

Share Improve this question edited Apr 13, 2017 at 12:37 CommunityBot 1 asked Jan 22, 2017 at 19:38 EnglishTeacherEricEnglishTeacherEric 3632 gold badges7 silver badges17 bronze badges 2
  • Hi, are you asking about the permalinks? The question is a bit unclear to me. Can you please specify what do you want to achieve? – Johansson Commented Jan 22, 2017 at 19:43
  • What is your permalink structure set to under Settings > Permalinks in admin? – Milo Commented Jan 22, 2017 at 19:48
Add a comment  | 

1 Answer 1

Reset to default 13

You can create any structure you want for this on the permalinks settings page in the dashboard.

To set it to your example of /blog/title-of-post

Simply navigate to Settings -> Permalink.

Select the "Custom Structure" radio button and enter blog/%postname%/ into the text field there, then hit the save changes button.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far