Questions tagged [links]

Apart from the obvious meaning, `link` in the WP context also stands for a special post format. Please use the `permalink` tag for questions about the url structure of a site.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

A dash can replace a period in a link, how to fix it

My link structure. I noticed that if you put a dash instead of a dot, it will also work. How to fix it? Normal link https://website.com/post-name-one.html Dash instead of dot link https://website.com/...
1
vote
0answers
15 views

Including users in insert link internal link search in Gutenberg

When I select text and insert a link in WordPress admin using Gutenberg, WordPress searches for internal pages based on the link text. It returns posts, custom posts etc., but not users. I found some ...
1
vote
0answers
16 views

Copy button for anchor link

I use my own webpage to help the users of my android app. I get many emails and many times they ask for help that is already in the help site. Sometimes the exact help they need is on a specific ...
0
votes
1answer
20 views

WordPress does not show correct page

Lately, my WordPress web tends to show a random page when an internal link is clicked. It currently does not show the home page as the root page. I can't find any system in this behavior. Sometimes, ...
0
votes
1answer
13 views

how to turn a link field into a button or link text

<?php if ( bbp_get_displayed_user_field( 'youtube' ) ) : ?> <p class="bbp-user-youtube"><?php printf( esc_html__( 'YouTube: %s', 'bbpress' ), bbp_rel_nofollow( ...
0
votes
1answer
16 views

How to share the author's archive?

<hr> <h3><?php esc_html_e( 'Forums', 'bbpress' ); ?></h3> <?php if ( bbp_get_user_last_posted() ) : ?> <p class="bbp-user-last-activity">...
1
vote
1answer
17 views

Why do my categories redirect?

When I create a new category I can't open it on my website and instead it redirects to another one called 'Macedonia' E.g. I made a new category called food but when I open the link http://...
0
votes
0answers
30 views

Best way to add onclick function to all internal links using javascript

As part of a plugin, I am looping all <a> link tags on a page and adding an onclick attribute. But I only want to add the onclick attribute IF the link URL is on the same site... So I am using ...
0
votes
1answer
11 views

Trying to get all links in my posts

I am trying to return all the links inside my posts'/pages' content, but I can't figure out how to get my regex/loop to work right. Here is what I have at the moment, that just returns a bunch of ...
0
votes
0answers
12 views

Categories links suggestions same with link-to-post suggestion autocomplete from within the editor

I'm struggling to add links from within the content (WP Gutenberg Editor) to categories, in the same way WordPress deals with posts. Using autocomplete, when searching for an internal link, you can ...
0
votes
1answer
50 views

Any idea how to get something like this to work? [closed]

This has been cleared. Leave it cleared.
0
votes
0answers
15 views

Bulk change link to pdf's

Good morning, I installed first my site on a staging server. So that all the links to pdf files are such as : https://mystagingserver.com/wp-content/uploads/%date%/%filename%.pdf Now that my site is ...
0
votes
0answers
62 views

How to create a link-less parent (top level) menu item that doesn't use an anchor <a> tag

My question is closely related to this one: How make top level menu item not have link, but have sub-menus that are linked? When I create menu items with the style customizer, every menu item gets ...
0
votes
0answers
82 views

Delete #comment-XXX link

I would like to know if there is a way to add some code in my functions.php that could delete the #comment-583 link. For example, everytime I click on the date and time of a comment, there is a like ...
0
votes
0answers
55 views

Adding link options in insert/edit link dialog window

Good afternoon! I am looking for a way to insert a text box inside this insert/edit link dialog window. Due to googles recent changes for rel/nofollow links, we would like to insert an option to add a ...
0
votes
0answers
16 views

Add attribute to links that contain certain strings?

I'm trying to add a feature to a WordPress plugin and can't seem to figure out how to. I want to add an attribute to any internal links that contain the strings /wp-admin/ or /wp-login.php I want to ...
0
votes
1answer
41 views

Is there a way to link to the BOTTOM of the comments on a wordpress page?

We're using a free account on wordpress.com. On our site's main page, we have this HTML: To contact us <a href="#comments">send us a message in a comment</a>. Clicking on this ...
-3
votes
1answer
119 views

I've been trying for an hour to remove the underline from links; I don't understand why something that should be so simple is so difficult [closed]

I don't want links to be underlined. It's that simple. If you search google for this problem there's a ton of people asking how to do the same thing, going back more than a decade. So clearly this is ...
0
votes
1answer
26 views

custom posts archive pagination links /page/2/ ends up in 404

I have a custom post named blog, I am using a page with url - slug blog, with custom template for displaying the blog arhive. This is the query I am using in the template file: global $wp_query; ...
0
votes
0answers
17 views

ddnss linking problem

I'm facing an issue with ddnss.org linking to my wordpress. The main page is loading from outside my home, however backend and sub-pages prefix url with my internal ip. F.e. http://mycoolDomainName....
0
votes
0answers
12 views

How to replace all links on my wordpress blog with short links automatically

Most of the links on my wordpress blog are external and I want to replace them with short links automatically. Is there a plug-in for that. Or I have to manually replace each link. I tried prettylinks ...
0
votes
0answers
11 views

DropDown menu link to database and filtered

Morning, I'm doing free integration work for a non-profit organization that also works with people with disabilities. This organization at the regional level promotes and organizes events to which ...
0
votes
0answers
35 views

How to redirect a unique link based on login status

I have webstore on woocommerce, and on one of my wordpress pages (that page is not woocommerce page, but just wordpress and it is edited by Colibri free theme) I have download links for some products. ...
0
votes
0answers
23 views

Dynamic URL in Wordpress

My Wordpress funnel is a non-member, non-affiliate funnel (I'll call it mysite.com). But I do promote an opportunity from another company on it. I'll call it company.com (non-Wordpress if it matters). ...
0
votes
0answers
32 views

Add data attribute of post_id for Internal links

I noticed that internal links to other posts have data- * Attribute. One of Post ID. And the other of Post Type. (As in screenshot). The problem is, it's only in the block editor (Gutenberg). And not ...
0
votes
0answers
13 views

How do I share a site only to one User at the time? Please help 🥺🙌

I have a problem and can't find a solution. The Problem I have a Google sheet embedded in my site and I want that only one User can enter the site at the same time so that user2 can't see User1 data ...
0
votes
0answers
21 views

WP search box on page not finding .PDF files

Current marketing person left the business and I'm filling the role for now. Receiving code from search page which formally was able to locate .PDF files by typing in and searching by key word(s.) The ...
0
votes
1answer
131 views

WP Method `get_theme_file_uri()` Doesn't Seem To Be Working Properly When Used In The Head Section Of A Site

I'm preloading a web font in the head section of a WP custom theme and when I use the full file path it doesn't throw an error and works OK. When I use the WP function get_theme_file_uri inside the ...
1
vote
1answer
7 views

How do you link to a place in another page without any styling issues?

I have a 'Meet Our Team' section on my home page and I want to be able to click a menu button 'Meet Our Team' and be directed there, even if I click it from another page. My problem is that if I use #...
2
votes
0answers
267 views

Add custom attributes to link in Gutenberg

Is it possible to add custom attributes to link in Gutenberg editor? Please don't tell me to add those attributes from Edit as HTML view. Probably, there can add a new field in the link editor popup ...
0
votes
0answers
27 views

No https in url when writing links like: <a href="//

please help someone , hope you will understand me . Problems is with <a href="// no https in link when i try to edit on my web panel , i have correct link with https and when i see my page's ...
0
votes
0answers
23 views

Link to products with the same image title (woocommerce)

I have products with a generic image. The image title is for example abc.png. I would like to generate a link to all products with that image title. Any help would be appreciated. Thank you.
0
votes
0answers
23 views

Best practice to generate token for email action

I need to make a custom link to confirm order from user by email. This is the basic code : private static function get_confirmation_link( int $recipient_id, array $params = null ){ return home_url(...
0
votes
0answers
6 views

how to redirect a url to a secondary category?

let me explain, I have this url website.com/category1/category2/category3/postname I would like to redirect you to the youngest or lowest category "category3" let it be like this: website/...
0
votes
0answers
43 views

Filter out external links in the WooCommerce product description functions.php

I have an online marketplace powered by WooCommerce and need to prevent vendors from adding links to their websites or Etsy URLs in the product descriptions. Is there a way to filter out external ...
0
votes
2answers
58 views

Wordpress rewrites my link with custom URL scheme to http(s)

I have a page that only users of my native iOS app will find, which should open the app. This works (on any other HTML page anyway) by linking to "myapp://path/inside/app". Wordpress keeps &...
0
votes
0answers
19 views

Prevent the automatic URL linking added in last update

Since one of the recent WP updates, all URLs in my post contents are now magically converted to clickable links using some obscure Javascript function on page load, and I can't find a way to disable ...
0
votes
1answer
32 views

How can I automatically display the section link on my one-page Elementor website?

My website is using long one-page posts for each issue of our magazine and these are navigated through anchor links. I add the anchor links through Elementor. I want to be able to display the section ...
1
vote
1answer
135 views

How to use <LinkControl />

I am a beginner in WordPress development looking to build a block with tab navigation using <LinkControl />. I am still learning, so any guidance/materials/code examples will be appreciated. My ...
0
votes
0answers
145 views

How do you run code on a specific page without missing the init hook?

The earliest that functions such as get_permalink or is_page are available is parse_query (afaik). Then I thought, ok, clearly, I can't say if( is_page('myPage') ) { add_action( 'init'... // because ...
0
votes
1answer
35 views

Wordpress 5: prevent link from displaying page title instead of URL

I noticed in one of the updates since wordpress 5 that when I paste in a link to another site it shows the page title as the hyperlink (usually "Home") instead of the URL. I don't want that,...
0
votes
1answer
55 views

I need a link that directs the user that is logged to his profile

I want a link in the form to an image in the frontpage, that direct the user that is logged to the subscription packages that are on its profile: The link look like this: https://mywebsite.co.uk/...
0
votes
1answer
18 views

make link to search page

I have a search Icon in menu section of my site and looking for a way to when a user click on this search icon, redirected to the search page. in the search page, there is a search form and also ...
0
votes
0answers
118 views

Best practice to call a function from a button-link?

I am developing a WordPress website where I have to link a button to a function inside the functions.php file. Meaning that when someone clicks on a certain button, this will trigger a call to a ...
0
votes
1answer
37 views

How to get post permalink url without a href

I need code to get post url without a href, for example: <a href="http://mywebsite.com/permalink" rel="permalink">single post title</a> i just need the url like: http://...
0
votes
1answer
13 views

White image when I share my site

when I share the link to my WordPress, it shows a white image as the thumbnail. How do I alter this image?
0
votes
1answer
99 views

Dynamic subdomains for woocommerce affiliate sales but NO multisite. Is that possible?

I've got a woocommerce installation that sells things. We want to offer affiliates to sell our products with their own url, ie mysite.thebasesite.com. Basically, the way that it works is that a ...
0
votes
0answers
161 views

How to enable HTML tags in category description without breaking the category page

I'm trying to include hyperlinks as part of the description on a category page. Since WordPress strips the necessary HTML tags, I've added the following PHP code in a plugin, which stops the HTML tags ...
1
vote
1answer
27 views

How can I modify all existing <a> tags while keeping the urls themselves?

I want to modify all current links to Amazon on my site, to add a rel="nofollower" tag — they currently have an existing rel="noopener" tag which, as I thought, was always placed ...
1
vote
2answers
3k views

How to remove author name and link from a shared link preview?

I have a weird problem with a wordpress site I'm working on, when we share links for it on discord shared link contains my login name and a link to author posts page (index is a page not a blog page) ...

1
2 3 4 5
16