Change url of posts with keywords

I guess you are using custom post type with custom category is it?If so, then I suggest using this plugin: http://wordpress.org/plugins/custom-post-type-permalinks/ Set it up, go to Settings -> permalink settings and there will be an additional settings called “Permalink Settings for Custom Post types”. Enter something like : /%item%/%postname% If you are not using a … Read more

Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug

Internal rewrite rules have to point to index.php and set the proper query vars for WordPress to be able to load the requested object: add_rewrite_rule( ‘magazine/(\d{4})/(\d{2})/(\d{2})/?’, ‘index.php?issue=$matches[1]-$matches[2]-$matches[3]’, ‘top’ ); That should get incoming requests to resolve correctly, however, that’s only half the task. If you call the_permalink for your posts, you’ll still get the format … Read more

Adding more onto an esc_url [closed]

To concatenate strings, PHP uses the concatenation operator .. Thus, to append a string to the current user link, you can use bp_core_get_userlink( get_the_author_meta( ‘ID’ ), false, true ) . ‘/posts/’ Note that I’ve removed the first part of the assignment from the $no_anchor and $just_link parameters, as the values should be passed, and not … Read more

WordPress File URL Path Incorrect

Because you only have one slash instead of two in your URL: http:/eatdrink.ca That double slash ain’t just for looks. 🙂 Go to the hidden options.php page located at /wp-admin/options.php. Check and see what the “upload_url_path” is set to. Make sure it has a double slash there (if it’s empty, that is acceptable as well, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)