Articles of permalinks

Add specific word to default page permalink

Right now I am working on one of my client’s project. Its all about amazon product display. My client wants me to change the permalinks of all posts, pages, serch results, archive pages, categorypages, all custom post type pages. I am very new to Rewrite API. I have read the documentation provide on wordpress codex […]

Problem duplicated shortlinks bitly

I’ve this plugin to create shortlink using the bitly API, but there’s a problem! function yoast_bitly_shortlink($url, $id, $context, $allow_slugs) { if ( ( is_singular() && !is_preview() ) || $context == ‘post’ ) { $short = get_post_meta($id, ‘_yoast_bitlylink’, true); if ( !$short || $short == ” ) { if ( !defined(‘BITLY_USERNAME’) || !defined(‘BITLY_APIKEY’) ) { $short […]

How to find out who handles a permalink?

My previous question isn’t faring too well. I guess it may be too specific. Let me approach the problem from another direction. There’s an URL within my WordPress site. It’s occupied – sending the visitor to some resource. How can I identify the type of resource is associated with this URL, and then find the […]

New categories are now going to 404s

I have a WPMU site with hundreds of blogs on it. We are on 3.4.2 and this is the first time I’m seeing this issue within a few of my sites. Basically, what happens is that I’ll create a new category and then when I click on it from the sidebar where all the categories […]

Define permalinks for custom post type by taxonomy in WP 3.4

I want to create canonical permalinks for products and product types. I have the custom post types and custom taxonomy figured out, but I don’t know if its possible to define permalinks with taxonomies. So my workflow, for example, would be this… I create a custom post type called products. Then I create a custom […]

How to fix a double slash in custom permalinks with hierarchical taxonomy's?

Following the solution from Jeff @ Custom permalinks – post type – hierarchical taxonomy's I managed to rewrite my url’s for custom taxonomy‘s. However i do have one thing that bothers me and that is a double slash in the output because of the separator. I can not change this in the permalinks section […]

How to get the permalink of a page when loading my plugin

I’m implementing a web widget and for this reason I’d like my script to respond to the request as soon as possible, to avoid loading unnecessary thing. I’ve found out that calling get_permalink( $page_id ) before the init phase return this error: [19-Sep-2012 12:10:12 UTC] PHP Fatal error: Call to a member function get_page_permastruct() on […]

Change permalink for a single post type only

At present I’m using this permalink structure /%category%/%postname%/. There are some existing post type. I want to change permalink for image post type to image/%post_id%/, and don’t want to affect other post type and their permalinks.

Custom post types and permalink

I’m looking for a way to solve my problem with permalinks in wordpress. I have 3 post types: news (default), posttype1, posttype2 all 3 uses the standard category. I added 3 categories in it: cat1, cat2, cat3 What I want is this: : show all posts of « posttype1 » : show all posts of […]

How to Display ACF Relationship Custom Field as Link to Specific Custom Post?

OK. I am reading this ACF tutorials, but I am not getting into this. I have 2 post types: Lists and Contacts. Every List must be related to some Contact, and I use Relationship custom field type (list_supplier), which is limited to only one choice (or Contact). All I have to do is to display […]