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)

0
votes
1answer
56 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 ...
0
votes
2answers
88 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
90 views

How to show the homepage on a different url, like site.com/blog instead of site.com?

I have Wordpress installed in my root directory, so if you go to site.com you see the list of recent posts. What I want to do is to have the homepage show a static page instead showing recent news ...
0
votes
1answer
564 views

How can I do a url redirect to include a wordpress username?

I currently have a button like this, that takes a user to their 'mentions' page <a href="http://my.url.org/mentions/<?php global $userdata; get_currentuserinfo(); echo( $userdata->user_login ...
0
votes
2answers
463 views

What can I replace '.get_bloginfo('url').' with to return the current URL rather than the home address?

I am using the Any Mobile Theme Switcher plugin to switch between full and mobile themes automatically. The only problem with it is that the 'switch to mobile site' and 'switch to full site' links ...
0
votes
1answer
63 views

Nicer URL for viewing category of posts?

At the moment to view a category of posts I have a url like http://server/category/tag Is there a way in wordpress I can do this as: http://server/tag
0
votes
1answer
1k views

How to call images from your plugins image folder?

I've done a lot of research and learned a lot about WP constants and function usage for getting image paths etc. but still my original problem persists. <img src="<?PHP echo WP_PLUGIN_DIR . ...
0
votes
2answers
666 views

custom wordpress rewrite

I am trying custom rewrite for following url... http://www.domain.com/lp/1 and it would be parsed using lp.php?p=1 I have tried following... add_action( 'init', 'aagt_rewrite_add_rewrites' ); ...
0
votes
1answer
3k views

How do I get the author's page url from their ID?

What is the best way to get the author's page url, so http://example.com/author/user73, from their ID number?
0
votes
1answer
810 views

Problem with parent page slug only in WordPress admin

I am using the permalink structure: /%category%/%postname%/ in order to show my blog posts under their category in my url. I have also installed WordPress SEO by yoast (if that helps) but I noticed ...
0
votes
1answer
81 views

How to get CGI variables?

I need to do two things: Add a CGI variable (say filter=21) to the current query and make a link to this modified URL. Fetch the value of CGI variable "filter". How to do that in WordPress?
0
votes
1answer
1k views

WordPress and $_GET Params

This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use ...
0
votes
2answers
144 views

Clicks registering on Preview DNS site

I set up my site on a PreviewDNS, I have since pointed my Domain to the correct place and changed all the links to non-previewDNS links. However I can see (using Jetpack) that visitors to my site are ...
0
votes
1answer
519 views

Flushing rewrite rules

I'm using this function to add a custom end point to the WordPress urls add_rewrite_endpoint('print', EP_ALL); When the plug-in gets deactivated, I run this function flush_rewrite_rules(); This ...
0
votes
2answers
3k views

permalink for category pages and posts

Can you please help me? For getting post url I use: <?php the_permalink() ?> But for pages and for categories? If I use <?php the_permalink() ?> on categories it displays post url.
0
votes
2answers
59 views

How can I identify which file/function will be used to respond to a particular URL?

I'm a Drupalista who occasionally works in WordPress so this might be obvious :) I was helping a colleague debug some AJAX behaviour, and having got the URL of the callback from Firebug, I wasn't sure ...
0
votes
1answer
484 views

How do I make Wordpress “Page” link in the top nav bar go to an external URL?

I would like the Wordpress page link as shown here go to an external URL instead of going to page. What is the best way to set this up? I'm running Wordpress 3.1.3. Thank you.
0
votes
1answer
522 views

How to display content from external db with relevant urls

I am working on a website that needs to display information about electronic resources which is stored in an external database. This information will be presented three different ways (alphabetical ...
0
votes
1answer
309 views

How does: /index.php?post_type=event&event-date=2011-07-25 work? What if it doesn't work?

I have an events cpt with a slug "event" I am using it in several places but I am trying to create a "day" view that shows all the events for a given day. I also have the archive arg set in the CPT ...
0
votes
1answer
52 views

Can I use %category% like Templates in my Plugin?

I have seen that Wordpress uses %category% like strings to create url templates. Is there an easy way to allow such mechanism in a plugin? For example in the plugin's settings page user specifies an ...
0
votes
1answer
2k views

How to get category/tag in URL for Pagination links?

I have a custom pagination function in functions.php. If I'm at the URL: http://mysite.com/tag/dogs, the Next link currently just contains /page/2. How can I make it so it will look like ...
0
votes
1answer
2k views

can I chage url for register_post_type

I registered custom post type by register_post_type('new_post',$args); So new post url looks like `http://myweb.com/new_post/post_name Can I change _later_ the part of url from new_post to something ...
0
votes
2answers
171 views

What is the best way to figure out which template file that a “pretty permalink” is using?

I'm new at wordpress, so maybe this question is very basic, but I looked at Google and I searched for tutorials and I didn't find anything... The question is simple. I have a "page", and this page is ...
0
votes
2answers
1k views

Make insterted image point to post url instead of attachment page

I am inserting an image in a post and I want it to point to the post detail page, not the attachment. What should I do? Thanks in advance.
0
votes
1answer
19 views

Alternatives to site_url() and get_template_directory_uri()

The problem I'm having is that my Wordpress is set up on localhost, but when I view the site from another computer, "<?php echo get_template_directory_uri();?>/image.png" will return ...
0
votes
1answer
13 views

How can I change the url of the blog post?

I have a url of the blog: http://inspurate.com/blog And the url of the blog post: http://inspurate.com/wordpress-blocked-pakistan/ But I want the url of the blog post to appear as: ...
0
votes
1answer
36 views

Use a template file for a specific url without creating a page

I wonder if its possible to use a template file for a specific url without having to create a page for that template. This is my simplified problem: I have created a page in WP with some link ...
0
votes
1answer
22 views

How to add page under a custom post type?

I would like to add a page that uses a custom template (page-coffee-about.php), so it will appear under a custom post type called "coffee". The URL of the custom page should be ...
0
votes
1answer
50 views

How do you get all the urls of images attached to a post?

I've searched high and low and can't seem to get it. I'm trying to output an XML feed with all the images attached to a post from a custom post type: </BasicDetails> <Pictures> ...
0
votes
1answer
29 views

Using esc_url_raw with protocols properly

I'm trying to build up my own function to sanitize a URL before saving it to my WP database. However I cannot get esc_url_raw to trigger against unwanted protocols. The function below is letting all ...
0
votes
2answers
45 views

Blog post - single.php url

I have a simple blog page that just lists blog posts on a page called 'news' http://my-site.co.uk/news I have a single.php page to display the actual post when it is clicked on 'news' The ...
0
votes
1answer
35 views

Changing custom post type URL issue

I have this function and it does just what I need, it replace words in URL perfectly, but links don't work. All links are good and display on site well structured, as I wanted, but just don't open ...
0
votes
1answer
33 views

TinyMCE Javascript URL Question

ed.windowManager.open({ file : url + '/shortcode_generator_popup.php', I would like to move this file one folder above the current one that it's in. I'm wondering how I can rewrite ...
0
votes
1answer
112 views

taxonomy/category term in URL slug irrelevant for post?

so I've got a nice hierarchical system working involving custom post types and taxonomies. (see Custom post types, taxonomies, and permalinks for reference) So if I have a post with ...
0
votes
1answer
75 views

Adding a query string to only one page url

I would like to add the following to a single page within my wordpress site and NOT all of them. Current page url/permalink mysite.com/pagename/ Would like to ...
0
votes
1answer
48 views

How to make WordPress urls matching static html urls

I have a website currently running in WordPress, before that site was static html, I converted that in WordPress. Now problem is I don't want to loose links, Google ranking, etc. I want the same ...
0
votes
2answers
53 views

Using Wordpress for a site's static marketing pages and blog at different URLs

Noob question. I would like to use Wordpress such that a single installation can support pages and blog posts at different URLs. I have a site built, and we want to use Wordpress for both marketing ...
0
votes
4answers
177 views

Renamed my website (URL) – how do I rename all within-page links to the old URL?

A while ago I renamed my website from ExplainingProgress.com to OurWorldInData.org . My problem is that sometimes – for some IFrames and some images – the URL that is linked to is still the old one ...
0
votes
1answer
45 views

Update image links in database

I recently changed the URL of a wordpress site and I can't seem to find some of the image links I was able to update most of the links in the wp_posts tables update wp_posts set guid = REPLACE(guid, ...
0
votes
1answer
245 views

Query var removed after rewrite

I have a WordPress blog that uses custom post types, which I'm creating using the WCK plugin. One of which is the post type shows. A permalink to a specific show, then, appears as: ...
0
votes
1answer
23 views

Site Title in my Search URL

First off, I am still learning Wordpress by building my own theme. Go easy on me. My search URL displays my sites title. Example: /My%20Site?s=horror Is there an issue with my searchform.php that is ...
0
votes
1answer
43 views

Adding more onto an esc_url [closed]

I have an esc_url that creates a link to buddypress profiles depending on the author of the post which returns like this http://www.mywebsite.com/members/username/ I want to make it so it returns ...
0
votes
1answer
952 views

How to change image url?

How can I change the image url from this http://i0.wp.com/example.com/wp-content/uploads/2014/06/imagename Into this: http://www.example.com/image/imagename.jpg Or into this: ...
0
votes
1answer
74 views

Rewriting a date hierarchy into a 'yyyy-mm-dd' slug

I am building a magazine website with an issue custom post type. The slugs for each issue follow the format YYYY-MM-DD according to the issue's publish date. Currently the permalinks are set up as ...
0
votes
1answer
51 views

Unicode characters are saved in a funny way in the DB

I have a custom website in which I am using wp_insert_post() to manually create posts that have a title which has characters thare are non-English Unicode letters (Arabic to be more specific). The ...
0
votes
1answer
40 views

Change url of posts with keywords

I have a website which is using general URL of word press like https://mywebsite.org/item/itempostname Every category post have a location. So i want to modify general URL to custom URL like ...
0
votes
2answers
46 views

Add # to submenu URLs automatically

I'm trying to replace all my child page URLs to include a # automatically example: http://www.website.com/parentfoo/#childfoo I tried using wp_setup_nav_menu_item to run through all the child menu ...
0
votes
1answer
38 views

What is the best way to revert to www version of domain name?

My site uses a bare domain, example.com. I want to use Google's Page Speed Service, which requires a www subdomain, like this www.example.com Google says the server must use a 301 redirect. What ...
0
votes
1answer
160 views

How to access the WordPress DB from a plugin file

I'm building a basic video management plugin, with an embed feature that will have URLs like: mysite.com/wp-content/plugins/embed-video.php?video=[POST ID] I plan on using the [POST ID] url parameter ...
0
votes
1answer
100 views

While Using Static Pages, How Can I Get /blog into the URL of Each Post?

I have Wordpress installed on the root of my website. It is using a static homepage and posts page. As it stands, each post will look like this example.com/blogpostname. I don't want to use category ...