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)

17
votes
6answers
2k views

Detecting a WordPress URL without doing a full HTTP GET?

I'm trying to write a oneboxing routine that gives WordPress blog entries special treatment. So given a simple, unadorned URL in content, such as ...
0
votes
0answers
30 views

Change Wordpress's URL from “abc.com” to “abc.com/de”

I have a domain. Currently, the site loads at that domain's root-- abc.com-- but I want it to to load at abc.com/de because I intend for the site to later become international. I looked already at ...
12
votes
4answers
10k views

What's the difference between home_url() and site_url()

My understanding is that site_url() returns the location where the wordpress core files are. So, if my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But ...
0
votes
0answers
44 views

How to remove the extra characters passing in the Custom post type

I have created the custom post type and the custom taxonomy. Then I have created the template file in the name of taxonomy taxonomy-product-categories. I created the post type, then added to the ...
0
votes
1answer
63 views

home_url(); showing current page instead of site address

Does anyone have an idea why my home_url() function gets the URL of the current page instead of the site address? (The site runs locally using MAMP.)
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
1answer
147 views

Get Taxonomy Term Title by it's URL

I have a URL - http://localhost/products/product-name/ and I want to use this URL to retrieve the title Product Name This is out of loop, so the URL provided is all I have to work from. Product Name ...
0
votes
2answers
53 views

Post's ID pattern?

Each post has an ID and I would like to know how they were assigned. Is there a pattern? Why are the ID's not being incremented by 1 every posts? It would be easier..My ID's go from 9867, to 9869, to ...
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 ...
4
votes
2answers
964 views

Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/. After that, when ...
0
votes
3answers
141 views

In Settings>>General I am missing some fields

I am new to Wordpress and downloaded the 3.5.1 version from my hosting provider. I want to add www in front of my domain and I read from many sources how to do this. Go to settings then general and ...
2
votes
3answers
176 views

Linking comments from registered users to their profile pages

I am trying to find a way to link the 'username' in comments from registered and logged in users to their profile pages instead of their website URL. And comments from unregistered users to their ...
0
votes
1answer
120 views

Redirect Old wordpress url to new wordpress url

What we did was delete a category to smooth out some confusion. The old url was: http://uafnews.com/headlines/my-permalink but now it is http://uafnews.com/my-permalink. How could I have people who ...
0
votes
1answer
3k views

Posts URL structure like site.com/category/the-post-title

I'm new with wordpress and I would like to understand better if it's possible to create pages with an url based on the category and then the post title, so: something like ...
8
votes
1answer
1k views

Does WordPress keep track of a post's URL history and provide automatic redirects?

I just changed the URL of one of my posts from http://2011.denmark.wordcamp.org/session/theme-frameworks-trends-og-standardisering/ to ...
1
vote
0answers
95 views

change content based on url per plugin

I have a wordpress page that uses a custom template I created. The url looks like this: http://localhost/custom What I want to do, is have the content for this page change, depending on the action ...
0
votes
1answer
909 views

Passing multiple variables through url (php)

I'm trying to pass two values to another page. Both pages are WordPress page templates. First, I pass the value as such: <tr ...
1
vote
1answer
1k views

Creating a dynamic URL structure

I want to create a directory structure for my WordPress links and for the final page to be based on the taxonomy of the page. So I have a business that belongs to a city (meta) and country ...
0
votes
2answers
291 views

How do I mitigate the forward slash problem for URLs of images after a WP migration?

I migrated my WP deployment from the old server to the new server. The site still has the same URL (i.e. http://my.site.com) but I've moved my WP deploy from the site URL to a subdirectory of said URL ...
0
votes
1answer
40 views

Function in functions.php by url

I want to use wordpress content in external mobile app. I need an URL address to get content from function located in functions.php for example: function test() { return 'it works'; } What I ...
0
votes
1answer
43 views

Using variable to display a page with a different stylesheet

Is it possible to implement a different stylesheet for a page using a url variable, for example Normal URL: www.example.com/page Would use the normal stylesheet Alternative URL: ...
0
votes
2answers
86 views

wordpress url correction

I have my wordpress site in a root folder like this "www.mysite/myblog/" so to get to the blog you have to go to "www.mysite/myblog/" I'm wanting to make it so that a user can go to "www.mysite" and ...
1
vote
2answers
514 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 ...
0
votes
1answer
2k views

attachment url rewrite

i want to change the address of the file attachment link to wordpress [example: http://www.sitename.com/category/sub-category/article.html/attachment/image etc.]. i did research on the subject ...
1
vote
2answers
1k views

How to add URL-Parameter for Javascript Widgets?

I need to add pamarameters to URLs that are read by javascript widgest/gadgets run on the site. Whenever I just add them e.g. the original URL is http://example.com/blog/page/ and the parameter is ...
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 ...
0
votes
2answers
391 views

custom url - add attachment's id or name after post

I want to link to attachments but through its parent page. /directors/piranha-bar/ shows all of that post's attachments on single.php and i want /directors/piranha-bar/video/name-or-ID/ to still use ...
2
votes
1answer
621 views

How to increase the character limit for post name of 200?

I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน I've changed the type of "post_name" using ...
0
votes
1answer
293 views

404 error on cyrillic url

I am using Another Wordpress Classifieds Plugin (awpcp) with Ukrainian translation. Due to it's limitations I am forced to use Cyrillic urls. While the site navigation works perfectly, when I reload ...
0
votes
2answers
189 views

WP Nav menu append to url

Using wp_nav_menu() , how can I append a value at end of each URL? For example, I have the following url: http://www.example.com/ but I have to append a language parameter at the end, so the url ...
0
votes
1answer
64 views

Is there a list of all possible WordPress URL's?

I'm looking for a way to find out how my WordPress site handles various incoming requests, some of which I have not written templates for. For example, there are a number of archive views (year, ...
0
votes
1answer
544 views

How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?

I created a thread (How to make www. and no www. Go to same site, for all sites?) in the support forums for the WordPress plugin: WordPress MU Domain Mapping. Everything is fine and dandy. I have a ...
1
vote
1answer
587 views

Insert custom ID into wp_get_attachment_link

I'm working on this function of WordPress. function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $text = false ) { $id = intval( $id ); $_post = ...
0
votes
1answer
439 views

Website Address Keep redirect to website after migration attempt

I have a loclhost site that I heard I can migrate the site by just copy and paste the whole site from local to host if I changed WordPress Address (URL) and Site Address (URL) to my current hosted ...
0
votes
1answer
54 views

Organizing the Navigation Menu

I have a problem with menu organization. I have a Pages with url "pressroom" and have a Category with the same name. I want to make it a one menu item. Pressroom (sitename.com/pressroom/) page 1 ...
1
vote
0answers
254 views

wp_insert_post - How do I prevent incremental numbers on child pages?

I'm using wp_insert_post to dynamically generate child pages for a given page using a predefined array of values. The goal is to give each child page the same slug. For example, clicking "Generate ...
0
votes
1answer
59 views

Using functions concatenated with strings inside a variable

Trying to do some dynamic image sourcing but I'm stuck. Probably pretty basic stuff, but I'm new to this. This works: <img src="<?php ...
0
votes
1answer
133 views

Append custom parameter to taxonomy/term URI

I have a Custom Post Type named "Cars" and 2 Custom Taxonomies "Ferrari" and "Lamborghini". Each taxonomy has 2 Terms: "New" and "Used". These URIs work as expected: http://myhost/ferrari/new ...
-1
votes
2answers
213 views

Remote Image (from URL) as Media Library element

I have slow upload on my wordpress server and I want to export two very big image to external server. So I need Media Library Image to use in other component. I cant edit URL of Image. Is any plugin ...
1
vote
0answers
110 views

Changing URL scheme, mod_rewrite not helping

We're trying to move away from the /YYYY/MM/DD/Post-Title URL structure without breaking links that are floating around on the internet. The mod_rewrite rule is fairly straight forward - RewriteRule ...
0
votes
2answers
79 views

Is Wordpress API visible from PHP file called in htaccess

I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
0
votes
1answer
2k views

Get URL Parameters from referer

Not 100% sure if this one classes as a php question or is specifically Wordpress... I'm implementing the Wordpress Settings API with a tabbed settings page. I've added a 'reset tab' button, but since ...
1
vote
0answers
63 views

Need help enqueueing webfonts

I am attempting to enqueue web fonts that I am loading in via the WebINK font library. (This service is similar to Typekit). This service works by generating a unique CSS link for each unique site. I ...
0
votes
1answer
1k views

Moved WP into new folder. How to fix image links in posts?

I moved from Wordpress.com to my own Wordpress.org hosting. I had no problems importing all my posts over, and the images were all linked up fine. Since the import, I decided to move my WP install ...
2
votes
1answer
66 views

Handling URLs in WordPress application

We have a web application that we run inside of WordPress in order take advantage of WordPress's authentication. To make this work, we created a template type for our application that simply includes ...
2
votes
1answer
140 views

Wordpress address URL keeps dropping the www

My Wordpress Address (URL) in general settings keeps losing the www from the URL - I type in http://www.domain.com and it saves and works fine. Next time I go in the address has changed to ...
-1
votes
1answer
94 views

WPMU - How to echo only one URL

I have this code that I am using on a site to check if the current user has a blog on the our wp network and as of now it is echoing the URL for both the main site and their blog. I would like to ...
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
2answers
161 views

How do I get rid of “category” from my URL structure?

By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel. How can ...
0
votes
2answers
5k views

How to set global variable in functions.php

I want to be able to echo the URL of the featured image of a post and after looking some on the web I found the following which works fine when I put it in a loop in my front page template. <?php ...