Top "Slug" questions

part of a URL that makes it more human readable or SEO-friendly, but without necessarily being required by the web server.

URL Friendly Username in PHP?

On my PHP site, currently users login with an email address and a password. I would like to add a …

php string friendly-url slug
Wordpress: How to get the tag's slug on the tag page

I'm on the tag.php page. How can I get its slug? single_tag_title() gets the title just fine, …

wordpress tags slug
How to Set POST permalink/slug in wordpress using wp_insert_post

I m writing simple script using wp_insert_post() to post article in blog. but one problem here, I want …

wordpress slug permalinks
Java code/library for generating slugs (for use in pretty URLs)

Web frameworks such as Rails and Django has built-in support for "slugs" which are used to generate readable and SEO-friendly …

java regex seo url-rewriting slug
How to get attribute name instead of slug in variation?

I need to get attribute from woocommerce product variation. $terms = get_post_meta($value['variation_id'], 'attribute_pa_color', true); …

php variables attributes woocommerce slug
wordpress: how to check if the slug contains a specific word?

I'm trying to use a conditional statement to check if either of two words (blog & news) appear in the …

wordpress slug
How can I create slugify in symfony2?

I have started to use symfony2 and I have found some functions that exists in symfony 1.4 like slugify. I need …

php symfony slug
creating unique page title slugs php

I have a function for creating unique slug for a page title. It checks if the slug is available in …

php mysql unique slug
Use Twig Extension in controller

I have a slugify method in an Twig Extension which i would like to use in some cases in a …

symfony twig slug
Convert any title to url slug and back from url slug to title

I want to convert any title e.g. of a blog entry to a user friendly url. I used rawurlencode() …

php string url-encoding slug