Taxonomy in URL

Following the steps below will make your permalinks look like: www.mydomain.com/videos(Category)/the-video(Post) Visit the Settings > Permalinks page of your WordPress administration dashboard. Select the Custom Structure option, and enter this value: /%category%/%postname%/ Click Save Changes There currently is no way (that I know of) to include the taxonomy in the permalink. One way around this … Read more

Multiple URLs with Numbers

You could try adding this above your wordpress rules in your .htaccess: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^about-us/([^/]+)/([0-9]+)/$ about-us/$1/ [R=301,L] It isn’t very useful, but that could be a good thing. It would redirect any grandchild of the about-us directory that is only numbers to its parent page (child of about-us). This one is universal. In … Read more

Organizing Your Pages

I think you may be confusing parent pages (hierarchy) with page slugs (the URL). Parent pages are designed to allow you to programmatically build things like menus/submenus and breadcrumbs. Whereas a page slug is the visual representation in the URL. Many times, of course, I’d recommend you make your page slug match your hierarchy (for … Read more

Get URL Parameters from referer

If tab=tab is in the URL then: global $_GET; var_dump($_GET); // debugging only; You should be able to see what you need. That is pure PHP. If your really need to process that string (I don’t know why your would) use parse_url then use parse_str on the query part of it. $path = parse_url($url); $path … Read more

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