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.
842
questions
0
votes
0
answers
9
views
After post URL change also automatically change references in posts to that new URL?
After I change the URL of a post there is an automatic redirection AND also some references (aka links) to the old URL are changed to point to the new URL automatically.
For example this automatic ...
0
votes
0
answers
11
views
Page linking issue
I have the following navigation items: Home, About Us, Services, and Contact.
Under the Services menu, I have two sub-menu items: 1. Business Analysis and 2. Training Management. I have created ...
0
votes
1
answer
21
views
Text decoration no longer applied to In post links
First, I am new to having a website and far from an expert though I am trying to learn every day.
I am struggling with the in-text links I have in my posts, they no longer have any text decoration. ...
1
vote
0
answers
377
views
WordPress Version 6.6 facing "This block has encountered an error and cannot be previewed." which edit text on page with link
Today, when I edit a page with text that has link attached to it getting this error "This block has encountered an error and cannot be previewed.".
Same issue when I try to attach new URL/...
0
votes
1
answer
28
views
Force Profile link for username, and stop "Website" field on Profile from becoming offsite link atop Comments, in "Recent Comments" list, etc
I've noticed that if "Website" is filled in on a user's Profile page, then the link formed around the username of that user will often (not always) point to that offsite link instead of to ...
0
votes
1
answer
46
views
I want the Title of page/post to show up topmost when reading the post/page
I want the Title of page/post (in content area) to show up topmost when reading the post/page.
If you use #anchor link you can only link to the topmost textblock, but then the Title of the post ...
0
votes
2
answers
39
views
I am looking for a function to create category links in the wordpress loop for articles
For several days I have been trying to create a link for the categories, basically they are displayed but are not clickable to access the categories page. Do you have a solution or a function to put ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
22
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 ...
0
votes
0
answers
13
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 ...
0
votes
1
answer
57
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 ...
0
votes
1
answer
13
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 ...
0
votes
1
answer
177
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....
1
vote
1
answer
66
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/...
0
votes
0
answers
17
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 ...
0
votes
1
answer
330
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 ...
3
votes
1
answer
109
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 ...
0
votes
0
answers
15
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 ...
0
votes
1
answer
35
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 ...
0
votes
0
answers
17
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 ...
0
votes
0
answers
21
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 ...
0
votes
1
answer
753
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 ...
0
votes
1
answer
119
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 ...
0
votes
1
answer
1k
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}" ...
1
vote
2
answers
678
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 ...
3
votes
1
answer
146
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 ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
116
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($...
0
votes
2
answers
38
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 ...
1
vote
0
answers
474
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 ...
0
votes
0
answers
286
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 ...
0
votes
0
answers
90
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-...
1
vote
1
answer
66
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 ...
1
vote
0
answers
144
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 ...
0
votes
1
answer
45
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 ...
-1
votes
1
answer
40
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 ...
0
votes
1
answer
79
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 ...
0
votes
1
answer
64
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 ...
0
votes
0
answers
143
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 ...
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.
1
vote
0
answers
42
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 ...
1
vote
1
answer
1k
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/&...
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(
...
0
votes
1
answer
350
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 ...
0
votes
0
answers
218
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 ...
0
votes
1
answer
389
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?
1
vote
1
answer
175
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 ...
0
votes
1
answer
95
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 ...
0
votes
0
answers
123
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=&...
0
votes
1
answer
86
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=...