Slugs

https://dev.pubmedia.us/slug/ ‎

example.com/slugname

Page slug: cpthi, child of p
https://dev.pubmedia.us/cpthi/testing-2/

Page slug:
cpthi=testing-2&post_type=cpthi&name=testing-2

finds directory in root named: /slugname
finds CPT slug (post_type or rewrite>slug) defined as: slugname
finds permalink category base option set to be: slugname
finds template in active theme file named: page-slugname.php
finds Page w/ slug (Post_name): “slug-name”
%postname%

refresh permalinks
retention after name change.

?finds CPT (hier and non-hi?) w/ slug: “slug-name”
?finds category base w/ slug: “slug-name”

https://dev.pubmedia.us/testing/testing/ finds category-base/
category_name=testing-2%2Ftesting

pagename=cpthi

may depend on which is created first, aka, some remnant of redirect.

Unique Slug Name

taxonomy.php in tags/3.3/wp-includes – WordPress Trac

http://core.trac.wordpress.org/browser/tags/3.3/wp-includes/taxonomy.php#L2175

Function Reference/wp unique post slug « WordPress Codex

wp_insert_post()
wp_insert_attachment()
calls wp_unique_post_slug()
$post_name = wp_unique_post_slug($post_name, $post_ID, $post_status, $post_type, $post_parent);

wp_unique_post_slug() /wp-includes/post.php
wp_term_post_slug() /wp-includes/taxonomy.php

http://www.bernzilla.com/item.php?id=1007

gastropod mollusc

Function_Reference/sanitize_title_with_dashes
wp/includes/formatting.php:855: function sanitize_title_with_dashes

https://dev.pubmedia.us/testing/

wp_unique_post_slug()
http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-includes/post.php.source.html#l2779

wp_unique_term_slug()
http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-includes/post.php.source.html#l2779

User:Amereservant/Editing and Customizing htaccess Indirectly « WordPress Codex

[wp-testers] WordPress scaling problems

Class Reference/WP Rewrite « WordPress Codex

How the Postname Permalinks in WordPress 3.3 Work » Otto on WordPress

http://codex.wordpress.org/Query_Overview

Function_Reference/wp_parse_args
/wp-includes/functions.php

in wp-includes/theme.php
bunch of theme files camparisons to
Function_Reference/get_queried_object
/wp-includes/query.php.

/wp-includes/rewrite.php
builds global $wp_rewrite;

load up array in:
locate_template()
wp-includes/theme.php

wp-includes/link-template.php

Query_Overview
wp-includes/classes.php
parse_request()

Plugin_API/Action_Reference#Actions_Run_During_a_Typical_Request

ie, on a wp_insert_post() WP will accurately return the results of wp_unique_post_slug() as the “Permalink:” URL on the Page Edit screen (and store it as ___ in the db). but whether that URL will find the page has nada to do w/ either of those functions.

some retention of some of these values for redirects even after the value changed.

once the top-level match is found, next level don’t affect query.

tag base

http://lists.automattic.com/pipermail/wp-testers/2009-January/011099.html

/%category%/%postname%/
/{category_base}/{term_id}/
whether plugins can affect

give users the tools to make good choices in naming slugs and defining permalink structure, and to eval what might have gone astray when they get 404s.

How to change your WordPress Permalink Structure • Yoast

Comments

Leave a Reply