Jump to content

Search the Community

Showing results for tags 'permalink'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 3 results

  1. I am working on a project that utilizes both Blog category and category name. I am trying to have the blog archive page list only posts for the Blog category and an additional archive for posts from other categories, for example: If a post is from category Sports, it shows on somedomain.com/category/sports or somedomain.com/sports/somepost and not under somedomain.com/blog and so on, and so forth. This is not added right now natively, so I will need to build a custom template to do this, but this could be a most beneficial addition to the pagelines frame work.
  2. Hi, I've created a custom taxonomy (for location) and I would like to have this taxonomy in my permalink. Now I have: %category%/%postname% and I would like to have %location%/%category%/%postname%. Via google I found this code: add_filter('post_link', 'location_permalink', 10, 3); add_filter('post_type_link', 'location_permalink', 10, 3); function location_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%%location%') === FALSE) return $permalink; // Get post $post = get_post($post_id); if (!$post) return $permalink; // Get taxonomy terms $terms = wp_get_object_terms($post->ID, 'location'); if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $taxonomy_slug = $terms[0]->slug; else $taxonomy_slug = 'location'; return str_replace('%location%', $taxonomy_slug, $permalink); } It is working for posts. However, I get 404 errors on pages. Hence, there is some permalink conflict. Any suggestion to fix this?
  3. I use Pagelines developper edition. Wordpress is installed on the root directory of my server. I configure my permalink like http://mpmea-congo.com/index.php/sample-post/ (see attached file) this but all my link are formed like the following http://mpmea-congo.com/index.php/demarches-administratives/ having index.php in the permalink. I'd like to knnow how to remove it ? Thanks
×