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

Redirect Issue on the main navbar [closed]

On the live site of client, one link on the main nav bar is redirecting the site to dating site even though the navbar is correctly linked to the site inner page. The site has been scanned through ...
Frank's user avatar
  • 1
0 votes
1 answer
21 views

Remove rel="ugc" from links in comments

I am trying to Remove rel="ugc" from links in comments, but nothing is working. I even tried Remove rel="nofollow ugc" from links in comments I also tried many plugins like: UGC ...
Jimmy's user avatar
  • 1
0 votes
1 answer
17 views

Redirect Issue on a link from the client side

I have implemented header menu using the WordPress menu tab and it is working correctly on my local pc but client from usa and other countries have frequently complaint that the sales button on the ...
Frank's user avatar
  • 1
0 votes
0 answers
9 views

Inserting link into text creates unnecessary indentation

I'm trying to insert a link into my text on Wordpress via Elementor, but it is creating a new line after the linked word. How do I get it to run consecutively on one line? When creating it in ...
Lexi's user avatar
  • 1
0 votes
1 answer
54 views

My home page article links are directing users back to the home page instead of linking to individual articles

It seems that the links on my home page articles are directing users back to the home page instead of linking to individual articles. My website is https://eclipseglassesreview.com/ and i have posted ...
Leroy's user avatar
  • 1
0 votes
1 answer
8 views

Permalink issue with new blog posts > getting 301 redirect

My permalink structure is: https://website.com/sample-post/ However, each new blog post is getting a 301 redirect from a link like this: https://website.com/2024/01/30/ I see that each new blog post ...
Meek Mill's user avatar
0 votes
1 answer
37 views

My links on the site are suddenly not underlined anymore

This might be a strange question, but somehow have all links lost their "underline", and I have no Idea why. I have no idea how to locate this issue? An example page is https://psykpatient....
Adam Larsson's user avatar
1 vote
1 answer
53 views

Nofollow the date/time hyperlink in comment

Where the date and time of sending each comment is displayed in the comments, it is also a hyperlink. I want to nofollow this a tag. I was able to do this through this file in this path: wp-includes/...
Monoor's user avatar
  • 13
0 votes
0 answers
16 views

Wordpress is ruining links to user profiles...?

I run a website that deals in reviews and as part of my SEO process I add a link to every authors archive of articles at the bottom of each new piece. Recently this has broken. When visiting it is ...
Rob Simpson's user avatar
0 votes
1 answer
151 views

Render link description in navigation block

I use Navigation block (Navigation menu) for my header menu. The problem I faced is that I can't render on front link description for the menu items that has children. I tried walker_nav_menu_start_el ...
oshka's user avatar
  • 11
2 votes
0 answers
79 views

Setting "Open in New Tab" for Link Control to be checked by default

When adding a new link to the visual editor, the default format for the Link Editor is that the "open new tab" is default unchecked. I am looking for a way to have the checkbox checked ...
Leo's user avatar
  • 21
0 votes
0 answers
12 views

media not opening in a new tab

I have links to many media links that are photos on a post in wordpress. I have the settings as "open in a new tab." Unfortunately whenever I click on them it just opens up the photo on the ...
Matthew Nemelka's user avatar
0 votes
0 answers
37 views

Disable Category Link

I need some help to disable my category pages and make them not clicable. I need to disable those 2nd level slugs from going to another page.I just want them there for structure reasons, no need to ...
user22446164's user avatar
0 votes
1 answer
32 views

Remove links to the comments section

I need to remove links to the comments section from every post and page on the site. Links to comments look like this: These links appear: In the post's byline as a speech bubble icon with the ...
Dave's user avatar
  • 119
0 votes
0 answers
13 views

How could I add conditional link colour to my wordpress site that depends on the purpose of the hyperlink?

I'm using a plugin called Encyclopedia/Wiki/Glossary to automatically hyperlink all instances of words that have been defined in the glossary directory so that they will be linked anywhere they appear ...
Jayw's user avatar
  • 1
0 votes
0 answers
20 views

passing vars to pages in wordpress 6 and search them

I've got a number of challenges I'm trying to work through in WordPress 6. I have 100s of items in a separate database I want to display on one page in WordPress. For example, I have a list of birds ...
Ted Baxter's user avatar
0 votes
1 answer
488 views

How to get default variation ID (woocommerce)

I need to create an additional "Add to Cart" button on the product page. In a simple product there is no problem with this. It is more difficult in a product with variants. To create such a ...
patryk siuta's user avatar
0 votes
0 answers
30 views

IF Statement to check if the link_title == then display this code

I am working on a section which uses ACF and each service has it owns colour (for background of an icon etc). This has been setup in Theme Options and I am trying to run an IF statement which checks ...
Barry Hughes's user avatar
0 votes
1 answer
105 views

Main Menu Hover is Always White

My Main Menu Hover color is always white. I used to be able to just change it in the customizer but that stopped working so I've tried every kind of CSS I can find, gone through inspecting it, tried ...
Cabin Puppets's user avatar
0 votes
0 answers
18 views

Allow Linking to draft posts from classic editor

I often work with content that has NDA dates applied to it. So i could have a dozen articles ready to publish but need to wait until a specific date to do so. It would be so handy if i could do all of ...
user1889580's user avatar
0 votes
0 answers
18 views

in classic editor, is there a way to add media lib files to the content search when creating a link?

In TinyMCE Editor, one can highlight some text, hit Ctrl-K and search for a list of matching posts to link to. Is there a way to add Media Lib Attachments into that list of possibilities?
jchwebdev's user avatar
  • 765
0 votes
1 answer
694 views

how to create a link to open app? [closed]

I want to add a button to my WordPress website that, when clicked on a mobile device, will open a specific app installed on the device. For example, I want to create a "Open {app_name}" ...
petey's user avatar
  • 1
1 vote
2 answers
424 views

Replace the custom post type permalink

I am quite new to wordpress and I'd like to know what I am doing wrong here: I've created a custom post type, let's say, custom_post_type_jobs. And I have a page which is called jobs. When I create a ...
Lemonated's user avatar
3 votes
1 answer
109 views

Change CPT Edit Target Link for Admin List

Hoping you can help with this conundrum of mine. I have created a CPT, and am changing the link in the admin list pages for it to be the front-end permalink. What I'd like to do now is to change the ...
Kevin's user avatar
  • 181
0 votes
0 answers
17 views

acf field repeater link don't work

I am trying to make an acf repeater field with the link field. I don't understand why I get an error message: "Warning: ltrim() expects parameter 1 to be string, array given in" Here is my ...
Thica's user avatar
  • 17
0 votes
1 answer
92 views

Remove content links (internal and external), but exclude post at specific categories

add_filter('the_content', 'removelink_content',1); function removelink_content($content = '') { preg_match_all("#<a(.*?)>(.*?)</a>#i",$content, $matches); $num = count($...
unopermanente's user avatar
0 votes
2 answers
36 views

How to have all RSS feed entries linking to the same specific page

I have a list of events. I built a CPT “Evenements” for these Events. I included these CPT in my rss feed using the following function add_filter( 'request', 'wpm_myfeed_request' ); function ...
Timama's user avatar
  • 3
1 vote
0 answers
329 views

Make all internal links relative, or otherwise make a website accessible from multiple domains

I'd like to make a WordPress website self-contained. That is, all its internal resources (images, pages, etc.) should be cross-linked independently of the site location. If I decide to move the ...
Zeus's user avatar
  • 111
0 votes
0 answers
254 views

Add link to media files in backend and modify linked images in the frontend

since a while I am looking for a way to add a "link to" option to the media library in the backend (this is working already - using the filter 'attachment_fields_to_edit') if there is a ...
Waldgeist's user avatar
0 votes
0 answers
76 views

Wordpress removes URL parameters from menu elements when saving the menu

I'm trying to add some submenu elements to interact with a shortcode in my page. The shortcode is a tabbed group and the following URL opens a specific tab: https://wp1.samuelezappala.it/?tab=prestito-...
SamuXzX's user avatar
1 vote
1 answer
54 views

Displaying list of random links using wp_nav_menu

Is it possible to modify wp_nav_menu to display a list of random links? I tried adding 'orderby' => 'rand', but that didn't do anything. I'm afraid my PHP skills are rudimentary, at best. The rest ...
kissmykitty's user avatar
1 vote
0 answers
118 views

Possible to limit internal link search to post types with Gutenberg editor?

My site consists of posts and several custom post types, one of which is "articles" and it's for news aggregation. It generates quite a bit of posts per day and an unforeseen consequence is ...
AJ Tatum's user avatar
  • 111
0 votes
1 answer
41 views

Alternative to rb-internal-links to implement [intlink tag?

I have a wordpress site that crashed and I'm rebuilding it. The previous site used rb-internal-links for internal links. Unfortunately, this package is no longer supported. rb-internal-links allowed ...
vy32's user avatar
  • 115
-1 votes
1 answer
35 views

Access the article edit page from the web address bar?

I have a link online: https://www.wpbeginner.com/plugins/how-to-add-custom-fields-to-comments-form-in-wordpress/ On the browser, from the address bar, what syntax, prefix, and suffix do I need to add ...
Redpoo's user avatar
  • 1
0 votes
1 answer
65 views

Add an anchor link to a 'plain' HTML file, without over-writing the entire site?

I have a simple site where WordPress provides the general look-and-feel, and overall page structure, but the important pages are actually plain HTML, styled by Bootstrap. These are manually created in ...
QF0's user avatar
  • 127
0 votes
1 answer
56 views

How to use the wpsnonce clone post link?

I have this link from a CPT, to clone a post, in this case post=30808: https://domain.com/wp-admin/admin.php?action=duplicate_post_clone&post=30808&_wpnonce=240f0078e7 Now, I need to use this ...
Horacsio's user avatar
0 votes
0 answers
123 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 ...
Islamic Quran Center's user avatar
0 votes
0 answers
22 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.
jamesnelson82's user avatar
1 vote
0 answers
41 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 ...
Avery's user avatar
  • 11
1 vote
1 answer
968 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/&...
ubsd's user avatar
  • 13
1 vote
2 answers
1k 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( ...
fefe's user avatar
  • 874
0 votes
1 answer
328 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 ...
rAthus's user avatar
  • 171
0 votes
0 answers
202 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 ...
Valiant's user avatar
0 votes
1 answer
359 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?
klvb's user avatar
  • 21
1 vote
1 answer
149 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 ...
Kevin's user avatar
  • 15
0 votes
1 answer
89 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 ...
Spencer Halstead's user avatar
0 votes
0 answers
116 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=&...
TheDoctor's user avatar
  • 103
0 votes
1 answer
64 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=...
Epix Media's user avatar
0 votes
1 answer
124 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. ...
Maharshi Gadhavi's user avatar
0 votes
2 answers
419 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 ...
Jeovanny's user avatar

1
2 3 4 5
17