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
0answers
12 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
0answers
35 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
38 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
51 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
14 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
8 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
31 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
10 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
38 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
27 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
21 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
28 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
9 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
18 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
19 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
12 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
21 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
42 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
23 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 ...
0
votes
0answers
23 views

How to use the WordPress API to get links and scripts in <head> and <body>

I'm using the WordPress API as a headless CMS. I have Elementor plugin installed to do page building in the WordPress admin. I'm trying to figure out how to get all of the <link> and <script&...
1
vote
0answers
17 views

Is it possible to change 'Link to' in all images in all articles?

After some update, they all changed to none. Need to change to 'Media file'. Can I do it once and for all pictures in all articles? I see in the text of article difference between images with Link To ...
0
votes
1answer
153 views

Change homepage's logo link [duplicate]

i've tried to change the logo link in the homepage with this code i've found: <?php echo esc_url( home_url( '/home' ) ); ?> this in the header.php but doesn't work, also i tried add_filter( '...
0
votes
0answers
16 views

Taxonomies delete link get_the_terms

I added the taxonomies in my CPT. I taken this in the wordpress codex. Because I want that my taxonomie hasn't link on the a click. The code is okay but my problem i would like delete the place in the ...
0
votes
0answers
20 views

Can I nest a <figcaption> element within <a> tags from default wordpress?

I am making a page with Gutenberg but there is a problem that the link does not work within a . This is the code when I inspect: <figure> <a href="..."> <img> </a> <...
0
votes
0answers
14 views

Making download links from short code

I want to create a word press download page with links to all my downloadable files (various types) and keep a running total of downloads. WPMP seems to do this but I cannot seem to create the link ...
0
votes
1answer
22 views

Get arguments from URL

I have example link http://mysite/login?user_id=6?reg=true how get user_id and reg values form $_GET? if i write: echo ($_GET['user_id']); Then get this: 6?reg=true And i try : echo ...
0
votes
0answers
18 views

Can't connect to a page inside my theme(I created it) directory

This is my nav bar <div class="header-menu"> <a href="/index.php">home</a> <a href="/about/single-about.php">about</a> <a href="/services/service.php"&...
0
votes
1answer
60 views

WooCommerce product id as permalink

Currently, the WooCommerce product permalinks is '/product/shoes-3' , '/product/cup-12' etc. How to change product permalinks to only be like /p/product_ID , for example '/p/1122' without using any ...
1
vote
1answer
72 views

Automatically append ID to at the end of specific URLs

I need to be able to automatically change normal links to affiliate links on my Wordpress website. For example: when I add a GOG.com link, it should automatically append my partner ID at the end of ...
0
votes
1answer
21 views

How to remove massive link in WordPress content

I would like to delete certain link that I have in the content of all the entries, for example : <a href="https://www.sitio.com">link contenido</a> Change it to: link contenido Or ...
0
votes
2answers
20 views

Trying to link to a custom css file in a new folder

I'm trying to link to a custom css file in a new folder of a small plugin I'm trying to make. I can't seem to get it to work. This is the line I have echo '<link rel="stylesheet" href="' . ...
0
votes
0answers
9 views

How find images my site is hotlinking to?

I used to employee a freelancer as a virtual assistant on my website and the guy has hotlinked many images to other website in more thant one hunder articles. Checking all the articles by hand is time ...
0
votes
1answer
29 views

Delete all href attribute in Wordpress posts

i want to replace all links with plain text. So <a href="http://www.anydomain.com/2">anchor text</a> should be just anchor text So I tried regex and it works here https://regex101.com/...
0
votes
1answer
32 views

How do I link a featured photo to it's post?

I cannot change the url of the photo in the featured-image edit section. The page can be found at https://irregularus.com/tips-and-stories/ and if you click on the picture you will see that it just ...
0
votes
1answer
34 views

Author Meta in Author URL Link

I am trying to modify the default author link url structure. In the URL, I would also like to change the string author to operator add some author meta along with the username. So far, I have ...
0
votes
0answers
13 views

Find and replace wordpress DB to open all links in new window/tab?

After spending a while searching, I found this: Open external links in a new window Also found a javascript powered plugin to perform this change while enabled. But, I wanted to be able to replace ...
0
votes
0answers
51 views

How to copy data from one CF7 to another via a link

I have 2 contact form 7 forms, a shorter one with name, number, email etc, and a second one with the same fields, plus much more details. I need people to submit all their details, but i feel they ...
0
votes
0answers
20 views

how to link local pages with flags in submenu

we have 4 flags on our website in the submenu. two, german and english are leading to the internal translation (wpml) the other two (chinese and russian) are leding to external links (local copies of ...
0
votes
1answer
24 views

Search Results No Link

The search results page is not showing a link that the user can click on. I am needing the heading to be the link. Does anyone know what the issue might be? Below is my search.php and content.php ...
0
votes
1answer
5 views

Metallex Theme modifies links after saving them

The Problem The theme I'm using allows one, in its options, to enter some contact info to be put in the header. The demo content has an empty link like this: <a href="#">Random Shit</a>. ...
0
votes
1answer
60 views

How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?

My website is a daily deals and offers site. I promote many online stores with affiliate links. I have created a php script to detect any merchant's link (ex- Amazon) and convert it to my affiliate ...
1
vote
2answers
46 views

How to change old permalink?

My old permalink structure is /index.php/%year%/%monthnum%/%day%/%postname%/. For example: https://example.com/index.php/2019/01/08/technological-innovation-for-agriculture-sector-in-india/ but I ...
0
votes
1answer
26 views

How do I point bloginfo('stylesheet_directory') to my parent theme?

I've created a child theme but the parent theme seems to use bloginfo('stylesheet_directory') to point to a lot of CSS and js files, none of which are currently loading. As I believe the '...
1
vote
1answer
21 views

My custom link works only on home page

I created a custom ID for the Portfolio section on my home page. Then I linked it to the "Portfolio" menu, but for some reason it only works from Home page and not from other pages. I tried to add /...
0
votes
0answers
9 views

How to Create pages and link them to a keyword simultaneously?

I am designing a very big listing site where I would have to refer certain pages to a specific keyword. My Query is is there a way by which I can avoid manual creation of links. That is whenever I ...
0
votes
0answers
41 views

how do I link a php or xml data file to current html page inside WordPress

I have three files sitting in the same directory on my Mac. They are; LiveSearchHtml.php, LiveSearch.php and links.xml They linked to each other to deliver a "live search" function based on data ...
0
votes
0answers
25 views

Redirect RSS feed URL to another link [duplicate]

I'm creating a website that's basically a collection of links. I have everything set up wonderfully but the last part is the RSS feed. Right now, it's behaving normally in the sense that each RSS ...
0
votes
0answers
31 views

Displaying Most Recently Edited Post

Is there a way of setting up my Wordpress blog so that the most recently edited blog post appears at the top of my homepage and any page to which it is linked?
0
votes
0answers
17 views

Sidebar with Links

Here is a link to a specific part of my blog. At the top of the page you will see a link "Topology Preliminary Exams" (in fact, that is the page I linked to in this SE post). Here's what I am trying ...