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
0 answers
14 views

While adding Customs Links on menu items, URL is removed on save [closed]

I am ading Custom Links on my menu items but when i click on Save Menu button URL is disappearing. For example i have added Home as a Custom Links and once i save it. Navigation Label is there but URL ...
user avatar
0 votes
0 answers
7 views

How to make entire <article> in blog post page linked?

I am using a theme where on the blog page only the featured image and the post title are using anchor link. On clicking it redirects to that respective post page. But I want to link the entire so ...
user avatar
0 votes
1 answer
49 views

Obfuscate links (for SEO purpose) [closed]

Link obfuscation is a more and more common topic in order to improve SEO by masking the non-important links to provide more weight to others. I'm looking for an efficient way to obfuscate links in ...
user avatar
  • 141
0 votes
0 answers
10 views

How to test custom links within a multisite while in development stage

I'm working on a wordpress multisite, I am working off a development/testing server before launching the sites. Here is an example of how URLs are set up. Main site url: 'main' sibling site url: 'main/...
user avatar
  • 17
0 votes
0 answers
6 views

Link to downloadable excel sheet on website leads to unfinished version of document

I am trying to replace a link in one of my pages under "course Doc URL". When I do, though, it opens an unfinished version of the document. But, when I put the same link into Google, the ...
user avatar
  • 1
0 votes
0 answers
31 views

how give a link to an Elementor Pro widget with variable part

I'm trying to give link to one button in Elementor like this (for sharing the post on a social media site): https://eitaa.com/share/url?url={url} by {url} I mean the current post url. but when I put ...
user avatar
0 votes
0 answers
8 views

Why the internal link get converted into a comment?

Well, whenever I change my internal links, just out of nowhere a new comment is generated, so how can I prevent it from happening.
user avatar
0 votes
1 answer
22 views

Remove all external links from posts

I have website what contain hundreads articles. is there some way, how to remove all external links from all posts by one click/script?
user avatar
  • 21
1 vote
1 answer
14 views

Class active for Archive link - looped out

I want to have the current Archive page link to have the class "selected". So if I'm in /category/featured/ that button on the menu should have the class selected. After trying several ...
user avatar
  • 13
0 votes
1 answer
27 views

Form will not popup, when clicking on the link to the form

I am creating a form that must popup, when a user clicks on a profile link. I have tried using javascript and various ways to do this, but I couldn't get the form to show. The page just jumps. I am ...
user avatar
0 votes
0 answers
20 views

Open login logo URL in new tab

Using add_filter('login_headerurl', fn() => FRONTEND); i was able to change the login logo URL. But i couldn't find a way to make it open in a new tab. Or in other words, how can i add target=&...
user avatar
  • 103
0 votes
0 answers
20 views

How to make a random dynamic url?

I have a pdf that embedded in a WordPress post. I want to create a random dynamic url for that post, for example: https://example.com/aj3nfjskke383fn Above link should be seen once, it has expiration ...
user avatar
  • 101
0 votes
1 answer
31 views

Problem with links once in portfolio item

Hope someone could help me. Link problem: This is my Homepage URL: https://epix.com.mx Portfolio onepage link: https://epix.com.mx/#Projects Portfolio item link: https://epix.com.mx/?portfolio=...
user avatar
0 votes
1 answer
26 views

Edit post & page option does not display on latest wordpress

I am not able to edit the WordPress default posts/pages from front-end. I have tried to deactivate all plugins, check/uncheck toolbar option(from profile) and also wp_footer() function in the file. ...
user avatar
0 votes
2 answers
75 views

Add link to php field text on wordpress form

I have bought a wordpress template but the developers say they cannot help me with what I need. The theme has a hotel reservation system integrated, and the form brings a field to “place” the user ...
user avatar
0 votes
0 answers
19 views

How to find what pages are internally linking to a page?

I have searched and searched and I must be missing something really obvious. Sorry. I want to know which pages internally link to a particular page. So page-a has some content (eg 'look at this') that ...
user avatar
  • 101
0 votes
0 answers
23 views

How to list posts from a sub-category that is listed in a parent category (more details below)?

I have an unusual situation I put myself in. I'm making a custom theme and I want to display a list of subcategory posts with its own URL like this: https://domain.com/category/sub-category So far, ...
user avatar
0 votes
0 answers
13 views

Adding wp users ID into a link address from a DIVI modul

I try to change the navigation of my members in the backend. A logged in user can edit his data on a post page. The link on the left menu "Meine Daten" will direct the user to his post. The ...
user avatar
0 votes
1 answer
55 views

Wrong activation/confirmation link in email

I've created a custom login page login.php inside the root. (e.g.: http://www.example.com/login.php) /* LOGIN PAGE. */ // Login URL. function custom_login_url($login_url, $redirect, $force_reauth ...
user avatar
0 votes
0 answers
16 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/...
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
0 answers
24 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 ...
user avatar
  • 111
0 votes
1 answer
22 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, ...
user avatar
0 votes
1 answer
17 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( ...
user avatar
0 votes
1 answer
18 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">...
user avatar
1 vote
1 answer
21 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://...
user avatar
0 votes
0 answers
63 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 ...
user avatar
  • 4,855
0 votes
1 answer
17 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 ...
user avatar
  • 279
0 votes
0 answers
19 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 ...
user avatar
  • 13
0 votes
1 answer
51 views

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

This has been cleared. Leave it cleared.
user avatar
0 votes
0 answers
25 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 ...
user avatar
  • 1
0 votes
0 answers
144 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 ...
user avatar
0 votes
0 answers
127 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 ...
user avatar
0 votes
0 answers
133 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 ...
user avatar
0 votes
0 answers
17 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 ...
user avatar
  • 21
0 votes
1 answer
56 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 ...
user avatar
-3 votes
1 answer
293 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 ...
user avatar
0 votes
1 answer
41 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; ...
user avatar
0 votes
0 answers
18 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....
user avatar
  • 101
0 votes
0 answers
50 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. ...
user avatar
  • 101
0 votes
0 answers
57 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 ...
user avatar
  • 1
0 votes
0 answers
15 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 ...
user avatar
0 votes
0 answers
34 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 ...
user avatar
0 votes
1 answer
255 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 ...
user avatar
  • 838
1 vote
1 answer
9 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 #...
user avatar
2 votes
0 answers
396 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 ...
user avatar
  • 785
0 votes
0 answers
29 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 ...
user avatar
  • 1
0 votes
0 answers
26 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.
user avatar
  • 1
0 votes
0 answers
26 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(...
user avatar
  • 770
0 votes
2 answers
101 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 &...
user avatar
  • 101

1
2 3 4 5
17