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
1answer
17 views

Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?

I'm looking at some plugin code that looks like so: get_previous_posts_link(__('<span>&larr;</span> Newer', 'gc-sermons'), $total_pages When I look at the WP function reference for ...
0
votes
0answers
13 views

Retrieve user's name and customize the next page accordingly

On the first page, I want to add a form to retrieve user name and then customize the next page accordingly (so as to address the user with his name). I'm new on Wordpress, kindly guide me. Thanks.
0
votes
1answer
19 views

Changing post depending upon where you're redirected from?

I want to create a post on my site in such a way that when a given user enters the first page (say, front), then some aspect of the "front" page changes (like picture shown, the name used to address ...
0
votes
1answer
23 views

Add clickable link on an image

I'm trying to add an image that when clicked on directs the user to another page on my website. I don't want any visible text link, just the image. How do I do this?
0
votes
1answer
14 views

How to add a link to an external website in the description of a customizer control (with Kirki)?

I'm building a Wordpress theme and I use the Kirki Customizer framework to add controls and settings to the customiser. I added a description to some controls, using the following code: 'description' ...
0
votes
0answers
18 views

Rotate prefix for external domain links using functions.php?

How to rotate from multiple prefixes for all links to a external domain https://externaldomainexample.com/ Our prefixes : https://example1.com/api/xx/ https://example2.com/api?=xxxx&url= https://...
0
votes
1answer
26 views

Why aren't links clickable on my 404 error page? [closed]

I have created a custom 404 error page. However, the links are not clickable. The link to my site and a random 404 page is https://createandgo.com/error404page
0
votes
0answers
13 views

how to link subdomain backend to main backend?

when you have to create m.domain.com subdomain for mobile devices,do you usally re crate backend (such as C.P.T posts combined with A.C.F ) or there is way to link subdomain backend to your main ...
0
votes
0answers
12 views

A simple link, from my temporary homepage to the original one, is not working - for some

I'm a pretty experienced WordPress developer, but this has me truly baffled. I built a new page as a "temporary homepage". Under Settings --> Reading, I set the Homepage to this new page (titled "...
0
votes
1answer
50 views

Vimeo video play button color function

In the page editor I pasted a Vimeo link: https://vimeo.com/253989945 Which generates the following: <iframe title="Breakaway Music video Shot on the Canon 7D" src="https://player.vimeo.com/video/...
0
votes
0answers
15 views

How to get and then style the Current Active link?

Hey there commumity this is my first question as a dev. I have made a list of the categories that are inside my custom post type by quering them. The problem is that I cant find a way to keep which ...
0
votes
1answer
36 views

How to change the canonical link from a category or taxonomy archive?

On this url: https://www.phuket-luxury-villas.us.com/tourist-spots/buddhist-temples-wats/ I have a wrong canonical link: <link rel="canonical" href="https://www.phuket-luxury-villas.us.com/tourist-...
0
votes
0answers
9 views

Query Link can't be published

I do have a page with many contents. Also references to external contents. I wanted to add such a link: <a href="https://ttvbw.click-tt.de/cgi-bin/WebObjects/nuLigaTTDE.woa/wa/...
0
votes
0answers
23 views

Create 600 links to separate files on google drive

For an educational project about climate change, I need to create 600 links pointing toward 600 separate files located on google drive. I have the list of all 600 shareable URL to the files but I don'...
0
votes
0answers
8 views

How can I create automatically changing urls?

I have following issue: I need to add CTA Buttons to my site, that generate, whenever someone clicks on them, a new url. The URL Structure has to be like this: example.com/ref/1001/test The part ...
0
votes
0answers
38 views

URLs for (MultiSite) link images are always relative

How I can I get WordPress to stop making link-image URLs relative? I'm trying to add logos to the blog-roll widget, but WordPress makes the URLs of the images relative to the current blog. For ...
0
votes
0answers
17 views

Add Developer Link on Homepage Only

<?php if ( is_front_page() ) { ?> | Developed by: <a href="https://mohsinalam.com" target="_blank">Mohsin Alam</a><?php } ?> <?php if ( is_home() ) { ?> | Developed by: &...
0
votes
1answer
14 views

Using Static HTML instead of the `home_url()` WP function

When I add links to pages in a custom WordPress theme I use the following function: href="<?php echo esc_url(home_url( '/contact-page' ));?>" If I don't use the home_ur() function, but the ...
1
vote
0answers
15 views

How to add Wordpress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?

When inserting a link into a post using the Wordpress Visual Editor, a popup UI shows up allowing you to type in / live search for the title of a published post. Is there any way to allow this ...
0
votes
1answer
15 views

Link To Child Category For A Post

I'm trying to display a link to just the child category on a Wordpress post. For instance if the category for a post is parent > child I want to show a link to just the child category page. I'm using ...
0
votes
1answer
13 views

Scroll to ID broken in main menu

I've taken over the task to maintain the website of your orchestra. Unfortunately the previous maintainer installed quite a lot plugins so it's hard for me to figure out which plugin is actually used ...
0
votes
1answer
15 views

How to show a full page when someone links directly to an image on my site

My site contains a lot of custom images. I've searched the web and found a lot of websites that link directly to the images on my site. Meaning, they link to the jpeg itself, not to the actual page on ...
0
votes
1answer
29 views

How do I list custom taxonomy terms with the links?

I've the following code which gives the list of the portfolio category as text. What can I do to have them as links instead? thank you function thb_display_category_cus() { if ('portfolio' === ...
-1
votes
1answer
9 views

Trying to chance my link style

I'm trying to edit the style of my hyperlink to be underlined like it currently is, but have a bit more space between the word and the underline. Is this possible? https://stridedigital.com/
0
votes
1answer
13 views

Insert wrap span tag around contents of a link tag automatically

I've searched around a good bit last night and today and haven't been able to find just what I'm looking for here. Basically I'm trying to automate this process: When I click the link button inside ...
0
votes
1answer
27 views

How do i get the link of the assigned taxonomy term?

So currently i have a taxonomy named 'blog-category' which contains the categories of the custom post type 'blogs'. On my home page i have posts that show their respective categories with them. I am ...
0
votes
0answers
7 views

Interlink Pluggin Special charectors Issue

I am using interlinking pluggin but when I put a key word like "Invisalign®" it is not working while reading docs couldnt found the special charectors handling there.Any support would be appreciable
0
votes
0answers
22 views

My Site is not filtering posts as per Categories

So I made a custom taxonomy like this and named it blog-category function homekong_blog_categories() { $labels = array( 'name' => _x( 'Blog Categories', 'taxonomy general ...
1
vote
0answers
40 views

Changes in permalink structure in WordPress and how to apply to in-site links

I have some work for wordPress internationalization. Actually, I got good results. Part of my code: add_filter( 'query_vars', 'queryi18n' ); function queryi18n( $query_vars ){ $query_vars[] = '...
0
votes
1answer
19 views

add_query_arg() and empty variables inside

I have link: <a href="'.esc_url(add_query_arg(array('search' => $search, 'category' => $category, 'filter' => $filter), '/site')).'">Click</a> And some variables sometimes exist ...
0
votes
2answers
148 views

Remove nofollow from specific internal links

I got all my website with a lot of internal cloaked links with a nofollow attribute. I need a function or filter to add inside functions.php that removes the nofollow attribute when the permalink ...
0
votes
1answer
58 views

How to add a target to a link

Is there a filter I could use to get and change the html output of a link? I would need to add a target="_blank" in some cases. I'm using the filter post_link to change the url itself where ...
0
votes
2answers
61 views

Cannot go back to the first paginated page using pagination links

I embedded standard code for pagination links and everything is working fine except that clicking the Previous or Page 1 link does not take me back to the first paginated page. This is different from ...
0
votes
0answers
340 views

Insert “javascript:void(0);” into URL

I am no beginner Wordpress developer by any means but I am completely stuck with this. I have tried an array of alternatives without any result (href="#", href="#void", etc.). I need "javascript:void(...
0
votes
0answers
52 views

Link Author's Website in Author Bio

I'm wondering if there is a way to link a website in the Author's bio under Wordpress Users? I have tried this code but to no avail: <a href="sampleWebsiteURLHere" title="Sample title here">...
0
votes
0answers
9 views

Gutemberg image block adding link to homepage

We recently started using Gutemberg on a website we are slowly changing. Everything seemed great, until we noticed that the image block is adding a link to our homepage on every instance, even though ...
-1
votes
1answer
38 views

Weird strange letters appeared in all website links [duplicate]

I have an issue with my new wordpress website running WooCommerce plugin. There is a random letters added in all website links “?v=d3d4c5deb455” I tried deactivating the addon’s and it didn't work - ...
0
votes
0answers
13 views

Passing a variable in a customer url menu

I'm trying to add a link to my menu that leads to the following page: /ar/variable where the variable is the page the user is currently visiting for example: when the user is on page site.com/contact ...
1
vote
2answers
43 views

Add dynamic links in WordPress custom theme

I want to implement a system to insert custom links in my wordpress custom theme. I don't want to hardcode these links inside my theme. These links are for the socials or partners website. So they ...
0
votes
1answer
29 views

How to mask external download links to be only accessible by logged-in users?

How to mask external download links to be only accessible by logged-in users? Like the direct download link example: www.example.com/direct-download-link1 We want to mask it like: www.ourwebsite.com/...
1
vote
0answers
23 views

Wordpress links https overwrite issue

We're running WP woocommerce website, we got there problem with generating links. Steam api is generating link in this format: steam://rungame/730/76561202255233023/+csgo_econ_action_preview%...
-1
votes
1answer
37 views

How to block external download link access if visitor not referred from WP?

How to block link access (on a custom script installed server) if visitor not referred from our wordpress site? I mean we want to block access to links inside of our wordpress posts and make them ...
0
votes
0answers
23 views

link not working in image section

Hi in my site paintint there is an interior designer section under slider whenever I put a link to that image like this link it adds /v after any link automatically: https://paintint.com/interior-...
0
votes
0answers
17 views

Wordpress change homepage link (htaccess) (index)

Currently I'm creating content for a website. I noticed that in the homepage extension, there was 'homepage' added to the homepage link: www.charlottes-haarmode.nl/homepage When I tried to remove the ...
0
votes
0answers
20 views

Links to root domain from search engines don't work, but direct links and links from other referrers do

I've got a really odd situation with a wordpress website I manage - when I directly type the domain into my browser, the site comes up just fine - similarly, when I click a link to my site from ...
0
votes
1answer
46 views

Display child-page links in sidebar on both Parent Pages AND Child Pages

I am currently developing a WordPress website that has a sidebar on most of the pages, this sidebar is supposed to display a small navigation of any child pages that are under the current parent page ...
-1
votes
1answer
15 views

one time visit to the page

I want to set up a page with PayPal subscription gate away to my members area. It's a simple page with PayPal button which offer discounted subscription price for the chosen customers only. ...
0
votes
0answers
24 views

Content -> Post is easy, but Post -> Content is hard

I have a CPT/Pods, so it makes Post to Country, but it's the almost identical. Content to Post (or Country) is easy, example: /country/page/5 (Content) to /country/taiwan/ (Post). while ( $query->...
0
votes
2answers
49 views

Security concerns with external links

In this article I read, that using <a href="" target="blank"> is related to some security issues. They recommend rel=noopener. How do I implement this in my WP-Installation? Which file is the ...
1
vote
0answers
25 views

Move Image Captions Inside Link (<a> tag) if Added

I'm just looking for a relatively simple way to modify the default output when a standard post image with a caption is linked somewhere (generally to another page), so that the caption is included in ...