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
19 views

How to set all External Domain Links with nofollow Attribute from Header Footer Content and Excerpt using PHP?

I am trying to set all external links with nofollow attribute on all Wordpress site. I found so many site where code is available only for content and excerpt. But i want to set nofollow attribute on ...
user avatar
0 votes
0 answers
16 views

Publish box in CPT remove 'edit' link

Hello I have a custom post and in the Publish Box I would like to remove the timestamp edit link.
user avatar
0 votes
0 answers
11 views

Snippet to Format Elementor Text Box Throws Error

I am trying to add a snippet to a WordPress site running Elementor with the Code Snippets plugin. The goal is to add an underline to any hyperlinked text in an Elementor Text Editor widget (which ...
user avatar
  • 1
0 votes
0 answers
11 views

Build Clickable Link Using Multiple Attributes

I am trying to build a function for WordPress (running Elementor, if that matters) that will concatenate 3 items to build a URL, then display that URL in a link that will open in a new window. The ...
user avatar
  • 1
1 vote
0 answers
11 views

Style internal links based on the tags of the linked post

When I internally link to one post in the body of another, I’d like the link to be styled based on the tags that the linked post belongs to. For example, say I have tags “good” and “bad”. When I link ...
user avatar
  • 11
0 votes
0 answers
9 views

Remove the preview link box since 6.0 update

Since the new update 6.0, Wordpress now create (sometimes) a preview box when I add a link into the editor. Is there any way to remove this functionality ?
user avatar
  • 154
0 votes
0 answers
7 views

Customize menu link for taxonomy in WP menu

I have a Taxonomy that I would like to change the link to in the WP menu. When clicking it goes to the Add Taxonomy page, like normal. What I would like to do is navigate to the Edit Page. In other ...
user avatar
0 votes
1 answer
29 views

how do I turn off whatever causes links to be embedded as URL's site title

When I print a url onto my site, it automatically gets wrapped in: <blockquote class="wp-embedded-content" data-secret="tDj3qpdVAi"><a href="https://www.example.com/&...
user avatar
  • 3
1 vote
2 answers
59 views

Add additional first page, last page links to the_posts_pagination()

Is there a way to add additional first and last page links to the pagination object if it is rendere with the the_posts_pagination() method? At this point I have the following the_posts_pagination( ...
user avatar
  • 824
0 votes
0 answers
8 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
69 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
11 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
42 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
12 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
28 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
17 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
29 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
21 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
21 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
32 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
104 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
30 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
76 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
59 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
21 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
25 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
23 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
76 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,865
0 votes
1 answer
19 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
  • 281
0 votes
0 answers
22 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
27 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
160 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
161 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
1 answer
62 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
327 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
45 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
52 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
72 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
36 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
279 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
  • 848

1
2 3 4 5
17