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.

Filter by
Sorted by
Tagged with
1
vote
3answers
142 views

How to use $_GET function Wordpress backend

I use Plugin Boilerplate for my project. I searched the internet and read all the questions but I couldn’t find what I need. I also read the WordPress Codex. I think I couldn’t get the idea. I have ...
0
votes
0answers
34 views

Change url parameter's name with rewrite

¡Hello! I need some help... I get this URL: https://mysite/entrevista-sesion/?Name=pedro And I need to change the parameter's name to: https://mysite/entrevista-sesion/?n=pedro I'm trying to ...
0
votes
1answer
16 views

Cannot Save Changes After Updating URL Settings

I am trying to include the SSL certificate generated by my host on my Wordpress site. According to the instructions from the web host, all that is left to do, is changing the WordPress Address and ...
0
votes
1answer
25 views

How to get user details by name

I am new in WordPress. I want to get user details on frontend without login in WordPress when the user types his name in browser URL (Like example.com/{user-name}) and hit enter, User redirect a new ...
4
votes
4answers
16k views

Add menu and submenu in admin with a URL instead of slug?

I use this function and hook: function mysite_admin_menu() { add_menu_page( 'Categories', 'Catégories', 'administrator', 'categories', 'a_function' ); add_submenu_page( 'categories', 'Manage', '...
0
votes
1answer
16 views

Template for displaying CPT / Taxonomy URL issues

I would like to create a template to display custom post's terms. First menu level page : (Drink - About / LOGO / Questions - Contact ) Section 1 (Drink Page) : (col-6) -> Image / (col-6) -> Page ...
0
votes
3answers
344 views

Custom HTML title based on URL parameter

Basically, we have alot of traffic coming to our site from different sources looking for slightly different things. But instead of creating new pages for each slight change in heading, we were ...
1
vote
1answer
2k views

Problem creating an edit link for a custom post type

In my last question, I asked How to build a post and comment editing form in a page?. But in order to edit the custom post type (called Question) I have to reference the edit page and the ID of the ...
0
votes
1answer
144 views

Meta inserted through wp_insert_post gets messed up

I'm extending the Woocommerce Product CSV Import functionality to import more data. I'm inserting a CPT with 2 metadata, a string (URL) and a bool, and the post_meta inserted gets messed up. It ...
0
votes
0answers
22 views

How to Change Wordpress Url Link and Pass Data to another page

our main post page of site look like https://webgetintopc.com/windows/anydesk/ i create new page name of download which look like this https://webgetintopc.com/download/ now i want this page like ...
0
votes
0answers
21 views

I can't connect to my wordpress site

in my LAN I have a LAMP server that I can see outside my LAN with the public URL that gave me NOIP. On this server I have loaded WordPress and from the PCs of my LAN I can work well, but if I try to ...
0
votes
1answer
580 views

retrieve permalinks of posts inside custom post type by using post ID

I have these custom post types registered as shown in the image below - In each of these custom post types, there are many posts. I have the function to retrieve the post IDs of each posts inside but ...
3
votes
3answers
1k 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
0answers
38 views

Multiple permalink with and without category for same post

It is a directory site with geodirectory plugin. Site owner wants 2 URLs for every post. One with category and another without category. For example: http://example.com/place/category-name/the-post-...
2
votes
0answers
20 views

Change permalink rule if category is called “uncategorized”

My current permalink looks like this /%category%/%postname% Basically I want something like this: If the category of the post is called "Uncategorized" then change the permalink rule from "/%...
0
votes
0answers
11 views

Strategy for yearly event website

What would be the best strategy for an event that takes place each year and each year the website is “renewed”? The organizers of the event thought of having the regular domain of the website (...
6
votes
1answer
16k views

Change default URL path (/blog/) of blog posts

I've tried to research prior questions on this topic but I believe that there was a better solution within the WordPress admin. How does one change the default URL path for blog posts? It was ...
0
votes
1answer
90 views

Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?

I have a custom post type called "equipment". I would like the permalink structure to be: example.com/equipment/%post_id%-slug I specifically want it to use a dash and not a slash (i.e. - "id-slug" ...
0
votes
2answers
24 views

Post page still linked to old site

Wife transferred her domain from Godaddy to HostGator. Somehow the Post page is still linked to the old site. I say old site because she started fresh on the site only wanting the domain. Her domain ...
1
vote
1answer
19 views

Storing the contents from txt file into The_Contents"

Currently I am trying to fetch data from an external page, which I have stored via a custom field and store it into the top portion of my WordPress the_content when the post is saved. The steps are ...
0
votes
1answer
51 views

WPALLIMPORT Exporting images from repeater field [closed]

I am getting this ouput when I export the custom field image, s:267:"a:9:{s:10:"sm-field-0";s:4:"1228";s:10:"sm-field-1";s:4:"1229";s:10:"sm-field-2";s:4:"1230";s:10:"sm-field-3";s:4:"1231";s:10:"sm-...
1
vote
2answers
1k views

How to make menu items active based on hash

I'm creating a Wordpress portfolio site using the Simone theme. I have three menu items that link to the same page but with different hashes: tovly.com/work/#work-all-work tovly.com/work/#work-...
0
votes
2answers
603 views

Wordpress admin page not found error

I accidentally changed my wordpress website url from what it was to the url which is same as my site url and after then I am not able to login into my admin it shows error of page not found(while ...
0
votes
0answers
304 views

React Router with Wordpress

I am using React Router (React app in a home page) with WordPress. The problem is when a user first loads a page with client URL route, for example site . com/recommendations, they see a 404 error. I ...
0
votes
0answers
21 views

Generate URL custom type post, category and post Wordpress

There are several types of posts: audio, video, book, as well as categories that are the same for everyone: category1, category2, etc. When creating a specific type of post, a category is selected. ...
0
votes
0answers
33 views

Strange Index Bloat issuesblo

I got a very strange google index bloat issue that is killing my love for blogging. I moved from Blogger to WordPress in August last year and then had the misfortune of hiring a fake developer to ...
9
votes
2answers
3k views

How to remove file versions from the file source links in wp_head?

I observed the inside the wp_head function in the source links of every .css, .js files a ?ver=1 (or other number based on the file's/library version) is added. How can I overwrite them, to remove ...
0
votes
1answer
253 views

Remove trailing slash from previous_posts_link()

I'm trying to remove trailing slash from a link which I get from previous_posts_link() function. Here is my code: <?php rtrim(previous_posts_link( __( 'text', 'name' ) ), '/'); ?> Unfortunetly ...
0
votes
0answers
79 views

Removing &submit=Search from search parameters?

I added the search feature to my site using: <?php get_search_form(); ?> I notice on the search page, after ?s=value, there is also &submit=Search Is there a way to remove this through ...
0
votes
1answer
69 views

Passing & Reading URL Parameters with URL re-writing

I’m fairly new to wordpress and all my previous sites have been in .asp or raw .php. and although I can tinker I’m no developer and due to time constraints I was hoping this would be an easy fix - but ...
2
votes
1answer
3k views

Remove the http protocol from images

I've been banging my head on the wall trying to filter my posts to remove the http: protocol from the img src and I think I may have found a solution. Does anybody see anything wrong with this ...
1
vote
1answer
634 views

How to add a Rewrite Rule / Category Structure

I'm currently trying to use add_rewrite_rule() to create a rewrite (duh!), for a custom taxonomy page. I've added the rewrite tag "sort" with the following code: add_rewrite_tag('%sort%','([^&]+)...
0
votes
0answers
8 views

How to display the name of categories when multiple filtered?

In WordPress, if I hit https://example.com/category/Pop I will get the category page named "Pop". The h1 title will also display "Pop". But what about when I use multiple category filter in the ...
0
votes
1answer
625 views

loop through posts and display inserted media and post title as a link

I'm fiddling around with an issue I cannot solve. Inside the loop I would like to find the URL of an inserted media file (pdf, doc etc) and display this as an anchor. Furthermore I would like to ...
0
votes
0answers
31 views

Custom rewrite rule don't pass parameters

I created a page template where I list some properties I get from an external source, but a need to to recover an URL parameter in order to get the right properies... For example, this URL : www....
0
votes
0answers
145 views

Using decoded (non-latin) URL as a share link

I'm getting the non-latin WP permalink this way, to avoid ugly, long, encoded URL: $hebrew_url = rawurldecode(get_permalink()); And later, I'm using this URL in share popup: <div class="share-...
0
votes
1answer
28 views

Passing a variable to hyperlink text?

Hope the question is not phrased badly Is it possible to pass a variable to for example having an: echo '<a href="' . esc_url( $link ) . '"> $link </a>'; so that the hyperlink is the ...
0
votes
0answers
25 views

Avoiding the -2 in slugs

so I have a little problem. I made a WordPress bilingual site with Polylang. Everything works fine, but there is a problem with the slugs. Many pages, although they're not in the same language, have ...
0
votes
0answers
15 views

There is how to change url domain on some posts?

There is how to change the URL on some posts? Like, for example, my website is www.mydomain.com, on posts it's like www.mydomain.com/post now can i change some posts to a url like www.myotherdomain....
0
votes
1answer
29 views

How to remove my website link when adding a link?

I'm trying to add links to social media pages on my WordPress website. However, when I add the icon and the link to the social media page and save it, the link automatically adds my website. Example: ...
0
votes
0answers
25 views

after remove slug custom post type then how to get archive page link?

//functions to remove multiply slug from team_member and event CPTs: function remove_evil_slugs($post_link, $post, $leavename) { if('conference-roundup' != $post->post_type || 'medical-...
0
votes
0answers
20 views

“Masking” a sub-page as it's own domain (www.schools.com/americanschools) as (www.americanschools.com)

I currently have a site, where I want one of it's sub-page's to be "masked" under a single domain. Example: I have www.schools.com/americanschools It's a sub page that only displays schools in ...
1
vote
1answer
370 views

Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?

I am interested, if I have a category with unicode chars in slug, i.e. ა-ბ wp outputs that in html source like: %e1%83%98-%92%90 However, I can stop that functionality (with term_link filter), and ...
0
votes
0answers
5 views

Link URL jumps/skipps to a different slug

For some reason the page I´ve set navigation to lead to skipps and fint a similar slug to visit. i.e. Linked page url: mysite.no/rc2019/workshops on click it "skips" and loads mysite.no/rc2018/...
4
votes
5answers
16k views

Mixed content warnings after changing site adress from HTTP to HTTPS

I changed my site address from HTTP to HTTPS by simply changing the URL in Settings -> General (Wordpress address and Website address.) Absolutely no issue in the admin area, anything works fine. ...
0
votes
1answer
21 views

Post not redirecting to non www after changing from www

Recently I changed my domain from www to non-www, still Post accessing using www. But showing blank page, what to do ? So that all post redirect to non-www. I did it through cpanel, after that ...
0
votes
0answers
35 views

Dynamic URL crawled in Wordpress at Page Level

My website settings looks fine including Permalinks (set to "Post name"), and .htaccess. But when I click on Page 2 (at bottom of my website), it shows strange URL like page/2/?fbclid-Iw.... (please ...
0
votes
1answer
28 views

How do I point bloginfo('stylesheet_directory') to my parent theme?

I've created a child theme but the parent theme seems to use bloginfo('stylesheet_directory') to point to a lot of CSS and js files, none of which are currently loading. As I believe the '...
9
votes
4answers
6k views

How to add category to: 'wp-admin/post-new.php'?

I want to have a link to create a new post that sets the category also. I have tried wp-admin/post-new.php?post_category=12 and wp-admin/post-new.php?cat=12, but neither worked. I also tried using ...
0
votes
0answers
172 views

Permalink / category base prefix is missing - how to force it? / SOLUTION FOUND

there, I am trying to set up a category base prefix. For some reason, WordPress skips those bases altogether. Here's the structure I would like to accomplish: mypage.com/topics/category name, ...