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
1 answer
49 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
  • 1
2 votes
0 answers
46 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
9 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
17 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
25 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
15 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
162 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
27 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
68 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
16 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
15 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
296 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
0 votes
0 answers
454 views

Change Pagination Default to "/2/" Query String "?page=2"

Help me Friends, How to change url on all pagination wordpress in home, taxonomy and post nextpage from /2/ to ?page=2 In home or frontpage : https://www.domain.com/?page=2 In Taxonomy : https://www....
Cilacap Info TV's user avatar
0 votes
0 answers
11 views

Crop custom image size vs actual size

I need to use specific image size with add_image_size to true using ACF image field and wp_get_attachment_image From this side, my image is displayed well and resizes well in 175*200. I would like to ...
Thica's user avatar
  • 15
0 votes
0 answers
18 views

How to change permalink structure off default posts and also CPT's posts

For example, I need "name of post type / name of post" when I am on single post page and when I am on category page it must look "name of post type / category / category name"
Vasyl Savka's user avatar
0 votes
0 answers
73 views

How to remove category and other tags from posts page

On my website I have a primary menu. Under this menu, I have links for categories. When a user clicks these menu links, they're redirected to a landing page with all posts that are marked for that ...
Pitmaster's user avatar
0 votes
0 answers
28 views

claim a permalink and all sublinks in plugin

I've built some wp plugins so have some experience but definitely not an expert. I want to build a plugin that can claim a permalink and all sublinks of that permalink and return it to the plugin. ...
AutoBaker's user avatar
  • 151
1 vote
2 answers
300 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
90 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
33 views

Set link dialog to open in blank by default

I'm trying to find a way to set the link option to open in a new window by default. I found this clever plugin but it is outdated. https://github.com/whyisjake/new-tab-always/blob/master/new-tab-...
Josh408's user avatar
  • 11
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
  • 15
0 votes
0 answers
15 views

Can't link to pages from Home Front Page now. Get 404

Can’t get to any pages from Home Front Page on the latest 6.1 WP on Linux Ubuntu 20.04 apach2 server. I get a 404. Maybe this will help to explain// The Front side I can get to the front page with ...
ozstar's user avatar
  • 1
0 votes
1 answer
66 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
33 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
174 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
161 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
64 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
40 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
91 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
35 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
34 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
48 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
46 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
112 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
33 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
0 votes
1 answer
759 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
  • 3
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
  • 844
0 votes
1 answer
276 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
173 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
319 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
120 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
70 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
99 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
53 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
72 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
397 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
0 votes
0 answers
43 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 ...
ThomasAJ's user avatar
  • 101
0 votes
1 answer
156 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 ...
Andrea Alba's user avatar

1
2 3 4 5
17