$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'); ?>permalinks - followup to: Page begins with number, WordPress adds 2|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)

permalinks - followup to: Page begins with number, WordPress adds 2

matteradmin10PV0评论

question: is there truly no workaround to wp pages (not posts) adding '-2' to numeric urls, when there's no naming conflict (ie, no conflict such as as a file or folder, of any sort, with the same numbers)?

background: i changed a html site to wp. i'm building wp pages, not posts. urls with numbers (domain/1458 or domain/10890), automatically get a '-2' added to the end (domain/1458-2). urls with no numbers do NOT get the '-2' added. the html site was deleted; there's nothing in Trash; no pics or other files pose a conflict. i have zero backend knowledge but for the first time, ventured into phpMyAdmin db. under the db heading, "_posts", i found '-2' pinned to, for example, 1458-2. i removed the '-2', saved, changed the permalink in wp and the issue resolved for a day or two. then the '-2' reappeared.

great resource: this article seems to suggest that there's no workaround: Page begins with number, WordPress adds 2

thx: obviously, i'll have to add text to the numeric urls unless you have a workaround. apologies for the long message.

Post a comment

comment list (0)

  1. No comments so far