Confusing about permalink
Try checking your settings under Settings > General. Is your Site Address (URL) set to http://dev.domain.com? The next place I would look would be Settings > Permalinks.
Try checking your settings under Settings > General. Is your Site Address (URL) set to http://dev.domain.com? The next place I would look would be Settings > Permalinks.
get_option( ‘permalink_structure’ ) is your friend. If you’re using the default it will be set as an empty string: if( get_option( ‘permalink_structure’ ) !== ” ) { // custom permalink enabled code } else { // no permalink }
When you’re registering a custom post type in WordPress, one of the arguments is ‘rewrite’, which allows you to set up a slug for your custom post type. In your example above, you would set the rewrite argument to ‘rewrite’ => array(‘slug’ => ‘recipes’) to create a URL structure like http://example.com/recipes/general-tsos-chicken You can also add … Read more
i wrote an article recently about how to customize your install (including setting permalinks) with install.php http://www.kathyisawesome.com/421/customizing-wordpress-install/
No, it is not entirely possible. WordPress is using Percent encoding to sanitise the slug. You could undo this, and it would deliver nonlatin characters, but the browser would immediately swap these out for percent encoded characters when you tried to visit the page. Wether your database will store these characters, and the table encoding … Read more
I don’t know how the IIS rewrites will impact things, but outside of that, I would recommend: Use Dashboard -> Tools -> Export to export your site content from the .com site Setup the identical permalink structure on the .org site Use `Dashboard -> Tools -> Import to **import your site content to the .org … Read more
Ok i found the answer. $post = get_blog_post( $blog_id, $data ); $link = get_blog_permalink( $blog_id, $data ); echo __(‘Post on’) . ‘ “<a href=”‘.$link.'”>’ . $post->post_title . ‘</a>”‘; I hope it will be useful for others 🙂
This plugin should allow you to do that http://wordpress.org/extend/plugins/wp-utf8-sanitize/
Try this code: function geotags_add_rewrite_rules($wp_rewrite_rules) { global $wp_rewrite; $rule_key = ‘%cityid%’; $url_pattern = ‘([^/]+)’; $query_string = ‘cityid=’; $wp_rewrite->add_rewrite_tag($rule_key, $url_pattern, $query_string); $url_structure = $wp_rewrite->root . “cityid/$rule_key/”; $rewrite_rules = $wp_rewrite->generate_rewrite_rules($url_structure); $wp_rewrite_rules = $rewrite_rules + $wp_rewrite_rules; return $wp_rewrite_rules; } add_filter(‘rewrite_rules_array’, ‘geotags_add_rewrite_rules’); function geotags_add_query_var($query_vars) { array_push($query_vars, ‘cityid’); return $query_vars; } add_filter(‘query_vars’,’geotags_add_query_var’); NOTE: Remember to save permalinks so your new … Read more
Your Custom Post Type is using the single.php and (most likely) archive.php templates. A single CPT post looks for templates in this order: single-{post_type}.php – If the post type were product, WordPress would look for single-product.php single.php index.php Other CPT pages look for templates in this order: taxonomy-{taxonomy}-{slug}.php taxonomy-{taxonomy}.php – If the taxonomy were sometax, … Read more