Questions tagged [urls]

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

476 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
12 views

Is it possible to configure WordPress's Core Files to accept duplicate Child Categories?

I am currently building a site structure, for an eCommerce site. The shopping platform, is WooCommerce As well as much research, I have spoken with many people, regarding best practices for URL ...
1
vote
1answer
147 views

How can I get the permalink of a post before it is published?

I'm trying to create a plugin that gives you a push notifications button, through the WordPress editor and I can't find a way to get the permalink of a draft post before its status is set to published....
1
vote
1answer
36 views

reducing number of URL Redirects and increasing speed

Currently my website URL, for quickest access to the site, it is of the form https://www.example.co.uk. Generally, if people know of your website, they will enter example.co.uk. Entering the website ...
1
vote
2answers
2k views

How to append a URL parameter to all outbound URLs

Is it possible to append ?ref=myref to all external URLs? If so I'm guessing I will also need to check if a ? already exists and use & if so. I'm a WP noob just coming from Joomla, any tips / ...
1
vote
0answers
107 views

Change url links on members loops in buddypress

I am new to buddypress, my installations is shown below. WordPress version: 4.9.4 BuddyPress Version: 2.9.3. I urgently need a way to change the url attached to members to link to member profile i....
1
vote
0answers
90 views

How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?

I have a custom taxonomy which is called locations which is assigned to post types which are post and events. What I am trying to figure out is how to rewrite the URL of the terms to also include the ...
1
vote
0answers
142 views

Removing custom meta data

I wrote some code to add some custom meta boxes to my theme admin panel, and it works like a charm. The problem is I can't figure out how to make it so I can remove some of the data too. Example: I ...
1
vote
3answers
114 views

Make homepage a non-Wordpress page

I have a website (www.example.com) that I'd like to add a WordPress blog to, but I want to keep the website's index.php as the homepage. I also want to add two links to the homepage, example.com/...
1
vote
0answers
91 views

URL rewriting: removing the site's basename for a specific category

I have a prestashop site with a WP blog inside. I'd like to use Wordpress for some contents of the site but do not wish to show it as a content of the blog, so I'd like to remove the WP folder name ...
1
vote
1answer
368 views

How to Include the Parent and Child Category in the Permalink if the Post is Added to Both

If I add a post to a parent and child category, I know that only the parent category will be shown in the permalink. For example, if the parent category was "Clothing" and the child category was "...
1
vote
0answers
24 views

Problem with utf8 link

I want to get my taxonomy link like this: http://ahanalat.co/محصولات/میلگرد/میلگرد-آجدار/کاوه-تیکمه-داش/ But when i call it with this function esc_url( $price_url_link ) it will be return like this: ...
1
vote
0answers
515 views

remove query string from homepage url

I have created a wordpress site in localhost and now before few days I have moved it on live. Now when I opening my site it is taking ?i=1(like http://example.com/?i=1) in homepage url. All other ...
1
vote
1answer
48 views

How to add an image to a custom url?

how can I create a custom URL for my WordPress site and add an image there? For instance, if my site is www.incrediblesite.com, how can I insert an image into www.incrediblesite.com/images/...
1
vote
0answers
530 views

filter RSS feed in URL

I have been busy with RSS feeds lately so I can auto load my content in my email service. I have build a feed (which works) and inside the feed I can toggle preferences by filtering on categories, ...
1
vote
1answer
472 views

Remove Trailing Slash from Category Base and Tag Base

I'm working on a custom static site generator using WordPress. I can't figure out how to remove the slash that comes after the category base and the tag base. I want to replace each with a dash. I'm ...
1
vote
0answers
29 views

Imported 10 000+ posts, custom field showing link not displayed

This my first post here! First of all, I have to tell you, I'm not a coder by any means, so please keep that in mind ;) I've been handed over a wordpress site that has a lot of customization s done. ...
1
vote
1answer
743 views

Wordpress shows error related to allow_url_fopen

I just installed wordpress with plugins, everything works find except on a 'contact me' page, where I can see an error like this. Warning: getimagesize(): php_network_getaddresses: getaddrinfo ...
1
vote
0answers
49 views

Find file url in post content and add it to media library

I'm using the Postie plugin to receive an email to create a post. In that email there will be link(s) to a pdf. I'm using wp_extract_urls and code from this post to try to add the pdf to the media ...
1
vote
0answers
30 views

Filters/Bulk Actions return wrong URL in admin dashboard

The site that has this bug lives in a subdirectory called /blog/. In the admin dashboard, whenever the user selects a dropdown (bulk actions/all dates/all categories/etc) , it leads to siteurl.com/wp-...
1
vote
2answers
106 views

Changing WordPress core without hacking core

In my situation, WordPress was using the wrong url in sortable column headers, filters and pagination in the admin dashboard. The only solution that worked involved modifying core files, specifically ...
1
vote
0answers
46 views

images not showing after transfer

After transfer Wordpress to another host some images not shown on pages. I fixed all permissions firstly but I realized that images which contains characters like ç,ş not recognised by server. In ...
1
vote
0answers
59 views

WordPress randomly shows 404 errors

I am maintaining a wordpress website developed by someone else which is not available. The problem is that it randomly shows 404 template page and when refreshing the page again it shows the page. ...
1
vote
1answer
285 views

Wordpress on AWS Auto scaling and ELB giving 503

I need to link example.com to two AWS Wordpress instances. example.com has an A-record pointing the ELB URL. As mentioned here, I added define('WP_HOME','http://example.com'); define('WP_SITEURL','...
1
vote
0answers
292 views

Get the url of a page template without using the page slug and ID

Can I get the url of the page "page-template-contactus.php" using "template-contactus" only?
1
vote
1answer
381 views

Get url from file uploaded in Media Library

I have a file called Portfolio.zip in my Media Library which will always have this name. Now in my page template I need the url to this file. I can achieve this via his id : wp_get_attachment_url( $...
1
vote
1answer
52 views

How to redirect large amount of URLs?

I have a Custom Post Type called 'Collections' with the following structure: http://example.com/collections/artwork-name/ Now, this Collections CPT has 4 categories that I've added to the permalink ...
1
vote
0answers
47 views

Remove -2 from URL; no duplicate pages, no images, no pages in trash

I've been working or a client and she's getting a -2 in a URL. URL: www.id4africa.com/2017-2. We originally thought that it was because she had named another page with that slug and then changed it. ...
1
vote
1answer
36 views

Ability to automatically redirect a URL

I have a website allows people to create fundraising campaigns for selling t-shirts. They have the ability to log-on, create product and then create a campaign with a deadline, etc. The plugin that ...
1
vote
0answers
42 views

stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2

I need to be able to keep pretty URLs, but I need to be able to send page as a URL arg. WordPress likes to do site.com/cat/2/ for page two, but I need site.com/cat?page=2 because we are moving some ...
1
vote
0answers
413 views

change url for static files in /wp-admin with a cdn url

I recently purchased a CDN and used a plugin to change the site url for all static files in the "/wp-content" and "/wp-include" folder to the cdn url. Is there a way to change the site url for ...
1
vote
1answer
41 views

Content duplication issue with dynamic URLs

My WordPress blog creates many dynamic URLs, which creates a content duplication issue for my website. As each page gets a different live URL, it's being considered as a duplicate page. Why are ...
1
vote
0answers
253 views

Add Taxonomy Subcategory To Permalink

I am using a custom post type (job_listing) and custom taxnomy (job_listing_category) via the Job Manager plugin. I came across a guide in the plugin's documentation, to "add the Job’s category name ...
1
vote
0answers
122 views

non-hierarchical post type with hierarchical url structure

I want the url for my custom post type to be like : "example.com/parent-custom-post/child-custom-post/grandchild-custom-post/" without setting the hierarchical(for custom post type) to true. I heard ...
1
vote
1answer
138 views

meta tags doesnt fetch data from permalinks

i have a page http://studyofjoy.com/categories/ i want to add custom meta tags to heading section like this: <meta property="og:title" content="<?php echo "title:" . $get_title_raw;...
1
vote
0answers
90 views

how to trace a file by the route url

i want to know, how can i zero in on the file that is rendered for a prticular route url. I am using the postname permalinks i.e. https://domainname.com/sample-post/ How can i check the file that is ...
1
vote
0answers
290 views

Wordpress keeps giving me the wrong permalink

Permalink: http://www.ccdalink.com/team_member/rf-johnson/ is the name of the permalink But after I exit and save changes. Another team_member's page and picture show up in place, and I only ...
1
vote
0answers
23 views

Host frontpage via example.com and everything else via example.com/blog

I've assigned a page as frontpage which will be available via example.com. All the other pages should be below the /blog. For example: Main-page: example.com All posts: example.com/blog Single Blog ...
1
vote
0answers
738 views

URL masking of subdomain to main domain using .htaccess

I am facing with the following technical challenge : We have a main website running on wordpress with content in local language (Greek) on the domain www.adomain.gr We want to set up a second website ...
1
vote
0answers
133 views

rewrite taxonomy-{taxonomy}-{term}.php terms

I try to figure out a rewrite problem, that is a somewhat over my head, so i ask here to find out what i can do. I use this two solutions from Jeff 1 and Milo 2, to get a full-path url for my custom ...
1
vote
0answers
358 views

Wordpress can generate numeric permalinks, which then 404

I know why setting a numerical permalink for a post would mean Wordpress confuses page name and number. However, I notice on the site I am working on (Wordpress 4), that you can edit the permalink to ...
1
vote
0answers
46 views

Changing URLs for taxonomies and CPT

I have two taxonomies for my custom post type: location and price-range. location is hierarchical: city > region > suburb ... price-range isn't. When a user goes into a URL like ww.page.com/...
1
vote
0answers
30 views

Why am I seeing all these weird 'loginid' requests?

I've been monitoring the access log for one of my Wordpress sites, and I'm seeing a lot of requests like this: /?loginid=df01ec6de1 I'll see a long series of these coming from one particular IP ...
1
vote
0answers
992 views

display dynamic content based on url slug on custom page

i have a custom page named locations and i want the url to load like this: /locations/california /locations/nevada etc.. and upon each page load of the given url as above content is loaded based on ...
1
vote
0answers
890 views

Remove subcategory and category with some rules from permalink

My current option for permalink is set to /%category%/%postname%/: I have a category 'stati' and parent category 'italian', 'german'. This parent category has some other parent category, for example: ...
1
vote
0answers
35 views

How to auto gen. custom post type values in other custom post type in url?

I have created two custom post types (CPT) say books and reviews. Now how can i auto generated a reviews page for a specific book title??. What i have done so far i made a review page (page-reviews....
1
vote
0answers
2k views

How to generate a list of all urls

I'd like to display a list of all Urls of my Wordprees site. I print out a list of all taxonomy terms like this : <?php // Get all Post $html = '<h2>Articles</h2>'; query_posts('&...
1
vote
1answer
285 views

Create custom permalinks to show Custom Post Type's relationship?

I'm creating a WordPress site that has 3 custom post types registered: course, chapter, and lesson. All of these post types are inter-connected and share a relationship using custom fields. For ...
1
vote
0answers
244 views

How to change the Author Slug from Username to Nickname and deal with Special Characters

I need to change the author slug from username to nickname: This is what is set by default: http://domain.tld/author/(username) This is what I need: http://domain.tld/author/(nickname)-(author-ID) ...
1
vote
0answers
1k views

Change media URL (images)

Similar questions have been posted, but none have been resolved. I'm looking to, programmatically on upload, change the URL of a media file to its URL on a CDN. I.e. modify site.com/wp-content/uploads/...
1
vote
0answers
156 views

Pre-populate Slug / Permalink with URL

I would like to not only pre-populate the title, tags, and categories, but would also like to pre-populate the slug / permalink as well. Can I do this and if so how? Here's my functions.php code: ...