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
485 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
287 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
4k 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 ...
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
168 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
991 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
24 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
24 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
50 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
47 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
28 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
131 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
21 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
32 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
293 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
67 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
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
43 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
136 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
77 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 ...
0
votes
1answer
237 views

How do I include an external PHP file in a subdir Wordpress install?

I originally posted this on SO, but was directed this way. I have a Wordpress installation in directory /blog. I am trying to include multiple PHP files located in the root parent directory using ...
0
votes
1answer
27 views

Need to check if user is on a particular page

Here I hope is a simple question for a php newbie. I have a textbox on my blog's home page that contains a link to another page. Should the visitor click the link and go to that page, I want to be ...
0
votes
1answer
112 views

How to add PHP pagination to wordpress

I'm trying to make a custom PHP pagination work with wordpress, the page in wordpress is a very custom one, not a post or a page, it's a select from DB that shows flowers, the styling is ok now, but ...
0
votes
1answer
218 views

Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?

Question updated. What I'm trying to do If I want to display posts (or a feed of posts) that belong to a category AND a custom taxonomy, or a category AND a tag, or a custom taxonomy AND a tag, I ...
0
votes
1answer
127 views

Strategy for handling hierarchical pages with empty parent content

Let assume I have the following page structure /about-us (used as a parent holder only) /about-us/history (real page) /about-us/team (real page) /about-us/industry (real page) There is no content ...
0
votes
2answers
58 views

Custom Post Type URL Rewrite's

I am going to try and sum up what I am trying to achieve... Basically I have a custom post type called 'marketing_list' which will have custom fields holding information relating to marketing lists ...
0
votes
1answer
15 views

Unnecessary url

$alt_text = get_post_meta( $id, '_wp_attachment_image_alt', true); $output .= '<div class="pslide"><a href="' . $alt_text . '"><img src="' . $img_attr[0] . '" ...
0
votes
1answer
479 views

Adding custom url to readmore link using get_permalink()

I am having issues with a custom url. I have a page with a gallery type plugin/shortcode. Now each gallery item displayed on the page, has a readmore link, linking to that gallery item post. Now I ...
0
votes
1answer
273 views

Confusion about how a URL is being parsed

I have a permalink that leads to some custom content like: http://mysite.com/extra-deal/91103/ That will take you to a page that is handled by the file: category-extra-deals.php On that page I ...
0
votes
1answer
326 views

How to set base url for php widget

SO, I have some php that I'm inserting into a widget that generates a list of pdfs within a directory on the root level of my wordpress install (see "Meeting Summaries" to the right here: ...
0
votes
1answer
62 views

Change Wordpress comments url / word

Is this possible? For example, I want to change http://mysitesitesite.com/post-name/comment-page-1/#comment-452 to http://mysitesitesite.com/post-name/custonname-1/#customname-452 What should I ...
0
votes
1answer
33 views

Replace category name with article id in wordpress urls

I would like to know, using wordpress, how to replace the category name with the article id in the url ? For example, I have a url of this kind : http://mywebsite.com/css/the-name-of-my-css-article ...
0
votes
1answer
42 views

Comment_author_url doing nothing

I have this function: <?php function top_comment_authors($amount = 5) { global $wpdb; $results = $wpdb->get_results(' SELECT COUNT(comment_author_email) AS comments_count, ...
0
votes
1answer
35 views

Inserting Media to WordPress Posts

If I insert an image to a WordPress docuament via "Add Media -> Insert from URL", and after submitting the URL and inserting to my post, is the image linked to my page or copied to my site? Thanks.
0
votes
1answer
74 views

Custom Post Type, post-formats associated to custom post type > 404 archives

I'm finishing a custom layout. Here's the code of my Custom Post Type <?php /* ------------------ [ CUSTOM POST TYPE ] ------------------------- */ add_action( 'init', 'create_post_type' ); ...
0
votes
2answers
60 views

Enabling canonical links to force search engines to go to site.com rather than site.net [closed]

I want visitors who have typed site.com, stay on site.com and visitors who have come to site.net, stay at site.net (They have one host and site.net has been parked on .com). When it comes to search ...
0
votes
2answers
29 views

Access posts while mod_rewrite is broken

On my wordpress installation mod_rewrite (e.g. the permalinks) is temporarily broken. For debugging I want to access the formerly "prettified" page mydomain.tld/page/2. What is the old GET parameter ...
0
votes
1answer
298 views

How to parse a custom url (within WP site) and obtain params passed to that URL

In my WP site-- eg. http://www.mydomain.com-- a request has to be passed to a custom URL-- http://www.mydomain.com/custompage?param1=abc&param2=def Now, I wish to obtain the parameters passed to ...
0
votes
1answer
155 views

Get logged in username in wordpress url

I want to get the username of the logged in users in the URL of my wordpress site. Like if user: arvind is logged in, I want to get the url as 'www.wp.com/arvind' or 'www.wp.com?user=arvind'. Is ...
0
votes
1answer
147 views

Author Nickname URL Friendly

Using the below code to chnage the author page url to use the "nickname". Works ok but when the nickname is more than one word it doesnt make it url friendly. Any way to do this? add_filter( ...
0
votes
1answer
209 views

Replace video url with video player

This is my plugin, this will replace the video shortcode format [video url="http://www.youtube.com/watch?v=sOnqjkJTMaA"][video] (Requirement is to show the video when a user placed a shortcode like ...
0
votes
1answer
100 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.)
0
votes
1answer
136 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
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
91 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 ...
0
votes
1answer
532 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
191 views

Finding URI in Child Theme

Which is best way to find URI in child Theme. <?php echo get_template_directory_uri(); ?> <?php bloginfo('template_directory'); ?> Below given code works but it has "stylesheet" in it, ...