A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource.

learn more… | top users | synonyms (1)

2
votes
1answer
115 views

“Reversable” and “Re-useable” Subcategories (or other taxonomic structure)

Hope you can help a WP newbie :) It is my understanding (and please correct me if I'm wrong!) that I cannot use the same subcategory slug in multiple parent categories, i.e. this structure is ...
2
votes
1answer
168 views

Which of WordPress's .php files need to be directly accessible via HTTP?

I'm trying to tighten up security on my WordPress installation, and one of the things that seems like it might be a good idea is preventing all of the internal-use .php files from being accessed ...
2
votes
1answer
260 views

Query two taxonomies via URL or link?

I've been banging my head about this, and have created a work-around, but it would be much nicer for my site's organisation if I could figure this out. I want to be able to query posts across two ...
1
vote
4answers
502 views

URLs of plugin resources?

I am trying to add in a script and css file for my plugin into the admin header. Is there a function similar to get_bloginfo('url') that I could use to reference the files correctly without having to ...
1
vote
4answers
4k views

Accessing the Current URL in a Text Widget for a Facebook Share Button?

I'm creating a "Share this Page"- widget that needs to grab the current URL and append it to a Facebook URL like this: http://www.facebook.com/sharer.php?u=http://myurl.com/a-specific-page I'm ...
1
vote
1answer
565 views

why does anchor name add a slash to url?

I am trying to do what should be some the most basic html, but it's not working for me. Here is my code: <a name="rocket"></a> <div> <h3>The Title</h3> <p>some ...
1
vote
2answers
2k views

How does WordPress generate URL slugs?

Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I'm writing a script that needs to generate URL slugs identical to the ones WordPress generates.
1
vote
1answer
697 views

Why id in urls doesn't work and slug yes?

I'm lost, I don't understand why this works http://website.com/?tag=my-cat-slug and not this http://website.com/?tag=15 It's really annoying because wp_dropdown_categories() only provides ids as ...
1
vote
1answer
4k views

Custom page with variables in url. Nice url with add_rewrite_rule

Using WP3.1 I Have a custom page with a WP_Query and the query gets dynamic variables from the url. And i want safe variables and clean urls. Example: ...
1
vote
2answers
158 views

open all .docs in word online

Hey I'm trying to make all .doc/docx .xls/xlsx files open in office online. This would mean that every link to a .doc http://mywebsite.com/wp-content/uploads.link.doc would have to instead point ...
1
vote
2answers
442 views

Link all Wordpress images size

How i can link all different images size upload in wordpress? I've definited different size image with the plugin simple image size so i'ld like show in single post, links to all new images example ...
1
vote
1answer
40 views

Convert link in Wordpress 3.2.1

How can I convert links (url displayed in the browser) from : www.mywebsite.com/?p=13 to something like this : www.mywebsite.com/title_of_the_topic
1
vote
1answer
1k views

urlencoding of the_title() doesn't work?

hey guys, <?php urlencode(the_title()); ?>doesn't take effect. this is my entrie line of code: <li><a href="mailto:?subject=<?php urlencode(the_title()); ...
1
vote
1answer
3k views

Change admin logout URL

My site is using a short vanity URL. This is working across all of the custom theme pages. The only problem is when I logout in the admin it redirects to the long URL, which then 404s. My General ...
1
vote
2answers
140 views

How can I use a separate domain for URL shortening?

I have a hosted Wordpress blog running on my own domain. I've recently considered trying to build a custom URL shortener (a la bit.ly) that I manage and control using a very short domain. I'm ...
1
vote
1answer
116 views

Site URL always in front of other URLs

My Wordpress site is having a bad URL structure when I'm adding new URL. For example in comments, when commentators fill in their website, it always has this structure ...
1
vote
2answers
549 views

Get closest page ID from URL

Lets say on my WordPress website I navigate to: www.example.com/media-centre/news/17/an-example-news-post In this case I am looking at a post in a CPT called News. What I want to do is get the ...
1
vote
1answer
124 views

Clean URL link for page without number

This is probably a really noob question, but I can't figure out how to change it. I've created a page called "Photos" and my url link shows: http://mysite.com/photo-7/ What's with the -7 and how ...
1
vote
3answers
424 views

Easiest way to simulate WordPress's URL resolution to retrieve post ID, etc?

I'm curious if it is possible, in a plugin/custom code, to take an URL that has been generated by the currently running WordPress site & parse it to retrieve the $blog_id and $post_id? ie. taking ...
1
vote
1answer
1k views

Allow single quote in URLs

I have a wordpress site hosted on a godaddy server running apache. My experience is on windows iss so this might be an easy question but I can't figure it out. I want to allow urls at my site like: ...
1
vote
2answers
2k views

Can't login after my site was moved to a new server

I'm working on a site which is not attached to a domain name yet, so I access to it through an ugly URL like old_server.something.myprovider.co.uk/.../.../ My provider moved me to a new server so I ...
1
vote
2answers
689 views

get_site_url is not returning anything?

I'm using the twentyten theme with the bbpress plugin. I have the following in my header.php (twentyten): <div id="masthead"> <div id="branding" role="banner"> ...
1
vote
3answers
2k views

How to create non-unique sub-category slugs?

What’s the best way to make Wordpress accept non-unique sub-category slugs? By default, Wordpress ensures that every ‘slug’ portion of permalink URLs is unique, and is very savvy about using this to ...
1
vote
1answer
4k views

How to reset canonical URLs / fix redirect loop

Couldn't find anything in the related questions, so here goes: I have a post which, when viewed on the site, is returning a redirect loop. The error page is showing an address for the post that ...
1
vote
1answer
136 views

Possible to create a permalink to sort with meta_key?

I feel like I've been all around the web and back again looking for an answer to this and it's really starting to grind my gears. Not sure if this is the correct way to do it, but I want to add a ...
1
vote
1answer
75 views

How to create a page for authors? like www.myblog.com/author/

I have author.php and it's working fine for authors separately. eg: if I click author1 and it goes to www.myblog.com/author/author1 and shows his details if I click author2 and it goes to ...
1
vote
1answer
167 views

Set template based on query in URL

I want to be able to force WordPress to load an page/post based on a query in the URL. www.mywordpresssite.com/posts/myarticle?template=custom This URL should load the myarticle post using template ...
1
vote
2answers
249 views

How to server wordpress from SSL and non-SSL URLs

I have a standard wordpress installation with no plugins residing in /var/www/blog on my root server. It uses an Apache2, mod_rewrite, mod_ssl and that is configured just fine and works perfectly for ...
1
vote
1answer
74 views

Shortcode for a link and thumbnail

<?php // Add Shortcode function blog_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'id' => '', ), $atts ) ); // Code if (has_post_thumbnail()) { $url ...
1
vote
2answers
512 views

Setting up two separate blogs while using WordPress as a CMS

I need to get this set up ASAP and cannot seem to figure out how to do this after searching and searching. I am using a WordPress install mostly as a CMS. I would like to have two separate areas on ...
1
vote
1answer
190 views

Echo URL of large version of Featured Image

I use this plugin to echo the URL of a post's featured image in the header: <?php /** Plugin Name: Post Thumbnail FB header */ function fb_header() { // Not on a single page or post? Stop ...
1
vote
1answer
2k views

How to Rewrite Wordpress URL for a Plugin

I am trying to build a Wordpress plugin here with a custom user admin area. What I would like to do is when the user adds /edit at the end of the page, it should open a page from my plugin. So for ...
1
vote
1answer
78 views

Moving a test WP site to live

I am new to WP and want to check something before I start down a patch that might not work. Using WordPress can I easily change the site URL? For example, I have an existing website visible at ...
1
vote
1answer
1k views

Custom permalink for search and pagination

@Chip Bennet helped me out in a previous question and posted his entire pagination function. This function works perfectly fine for me but I'd like to have custom permalinks in german. /** * ...
1
vote
1answer
113 views

media_sideload_image with rewritten urls?

When I try to use media_sideload_image with a path like this http://placekitten.com/300/200, it gives me an error. That is because it don't know the filetype or the filename. Best way to upload the ...
1
vote
1answer
70 views

How to obtain the link/URL to the feed of a custom taxonomy?

What I need to accomplish is to provide a feed link for every item in a custom taxonomy. The function get_category_feed_link only works for categories, and I don't see that tags support this either. ...
1
vote
1answer
310 views

Get the bare URL for an attachment

I'm trying to get the link to the thumbnail size of an attachment image. I tried this: wp_get_attachment_link( $img_id, 'thumbnail' ); but it returns the actual HTML for the image wrapped in a ...
1
vote
3answers
968 views

Custom URL parameters in template files

SETUP I want to pull a query variable from the URL and use it on my single post template (single.php). For example: mysite.com/2011/07/29/testPost/?myvar=someValue To do so, I added the custom query ...
1
vote
1answer
202 views

Setting a url for a page

Is there a way to set a url for a page, as per the following example: I want to change this url: http://richardclunan.com/?page_id=2 To: http://richardclunan.com/copy-critiques Is this possible? ...
1
vote
1answer
688 views

What's the proper way to use wp_enqueue_script/style?

First, let me tell you how I'm currently doing it. I have this function. It's purpose is to take the the string of a file system path (/root/web/dir/some/path/to/file) and return the equivalent URL ...
1
vote
2answers
500 views

Imported thumbnails have incorrect URL

I have an older WordPress site that is going away but I am taking the content from the site and importing it into my new WordPress site. To do this, I used the WordPress Export tool, located in my ...
1
vote
1answer
2k views

Why does Wordpress remove my variables in the URL?

I am trying to put variables into the URL, which I can then use in my Wordpress template. So for example I have created a wordpress template something.php and the page "somepage" with this template. ...
1
vote
4answers
2k views

How to change the main site url on a multisite installation (network)?

My multisite (network) installation has 3 sites. the main site (nothing there, just very brief information) client 1 site -- siteurl/client1 client 2 site -- siteurl/client2 With domain mapper, ...
1
vote
2answers
581 views

How to detect filter in URL in Category page?

I need to add an additional filter based on a category for posts that have a custom post_type. For example, I have a page located at /category/tasks that lists all tasks. I need to make it so I can ...
1
vote
2answers
204 views

Critical error in final stage of website launch - URLs are BROKEN!

We developed the wordpress site here: wwww.kirschfamilycomputerservices.com/sam/wheresthefairness ^^ URL does not exist now. When the website was done, we transferred the database & theme over ...
1
vote
1answer
294 views

Creating Search Engine Friendly URL's with Word Press

I own a website barrelandblade.com which was developed by a non SEO enlightened developer. I recently had the FV All in One SEO Pack installed as my site does not show up in the search engines at all. ...
1
vote
2answers
3k views

How to use div -ids in url to jump to specific post…Is trailing slash the culprit?

Some links on my site take the user to a specific post in context on a category page. On non-WP sites, this is easily accomplished by including #example-div-id in the url like this: ...
1
vote
1answer
40 views

Get posts from taxonomy URL

How can I get the posts from a custom taxonomy using the URL to determine which taxonomy term id is being shown? I tried to get posts via a category using get_category_by_path which returned false ...
1
vote
2answers
99 views

Disable ONLY URL auto complete, not the whole canonical URL system

I have a blog with several pages in some category "projects" that are structured/named like this: /projects/project-2012 /projects/project-2013 /projects/project-2014 /projects/project-2015 When a ...
1
vote
1answer
171 views

How can I change a plugin's URL?

I'm trying to use the OTW Portfolio Light plugin and what it does is adds it's own bit in the URL before the post type and I can't find where to change it. Going to a profile page brings up the ...