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
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
14 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
72 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
29 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
83 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
52 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
27 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
25 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
51 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
30 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
37 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 ...
1
vote
1answer
24 views

Link below the footer removal

i am just starting out with wordpress ,have a hosting account and using wordpress there..In every page,below the footer there is a link that takes people to donate to doctors without borders. I need ...
0
votes
1answer
57 views

Allow insecure embedded content in a SSL secured website

(After some research I think the straight answer is "no, your SSL secured website won't allow to embed insecure content" but I have to ask just to be 100% that is impossible.) I just activated a SSL ...
0
votes
0answers
23 views

How to change custom categories term links?

I have created "Tour Vacation"(tour-vacation) custom taxonomy and added below terms Africa (africa) Canada (canada) Europe (europe) US (us) I want change this terms links. Current link is: https://...
0
votes
1answer
69 views

remove the title attribute from links [closed]

I'm looking for a way to remove the title attribute from links. There is a old plugin but it breaks the site. The title I would like to remove is in the sidebar widget. Thats the code of the widget ...
0
votes
3answers
398 views

Setting up navigation links for posts (first, prev, next, last)

I'm setting up the wordpress for my webcomic/graphic novel and I'm just hitting a little snag when it comes to the navigation. Here's what I want, a very basic webcomic navigation scheme: << ...
0
votes
2answers
28 views

Can I link to content dynamically from a page to a new page?

I am new to Wordpress dev, and I have a page that loops through some custom fields(repeater) of people. I'd like each subfield link to go to another page that has more info from that person on the ...
1
vote
0answers
42 views

How to change all external links to “nofollow” but only for Contributor role?

Is there a way that I can change all my current (and future created) links to nofollow created by Contributor and leave all links "follow" created by the Administrator or Editor.
0
votes
1answer
15 views

How to change custom link of subpages from of localhost to website

I've created website using localhost. So while adding custom link of subpages like contact us or about its taking url of localhost instead of website like localhost/priyanka/about-us/. So how to ...
0
votes
1answer
338 views

Extract links from content

I'm looking for a solution to only display the links inside a string (my wysiwyg content) on my single page. First of all extract all my links, and replace each links content by the links title ...
1
vote
1answer
256 views

Get category url in loop

I need to get the category url for put it in meta snippets. Now the output inside the span is tag with url. I need to get only the url without tag and put inside $cat_display. I try with 2 options, ...
0
votes
1answer
27 views

Changing author links on homepage to buddypress profiles - without affecting ability to link to author archive throughout the site

I've set all author links to head to the author's buddypress profile rather than the author archive page. I've done this through my child theme's function.php file. *add_filter( 'author_link', '...
0
votes
0answers
17 views

Adding a different domain to existing Wordpress site

I haven't really found a question covering this topic and I'm sure that's because I don't know exactly how to word it. The problem is the following: My boss has recently overtaken the Swiss branch of ...
0
votes
1answer
25 views

How to generate/create link automatically on every word of post in wordpress

I am working on a poetry site and I am new to wordpress. I want to publish poems of various authors on my site. What i want is that when i publish a post, a link/onclick event on every word of post ...
0
votes
2answers
27 views

How do I avoid messing up URLs when switching from example.com/subdir to example.com?

The goal is to make my hidden Wordpress site go from http://example.com/subdir (which I have now) to replace the olde site at http://example.com (which is what I want when I take my WP site live). In ...
0
votes
1answer
26 views

Get youtube link title in post title

If my post title is https://www.youtube.com/watch?v=PJmMiZH3Q6I I want it to be converted to original video title which is "Ras Cricket - Fyah" Is there a way without API stuff cause it seems hard.
2
votes
2answers
29 views

How to use a Term Meta Field as a link

I created a taxonomy called animal and a term meta field called horse. I created a function in my functios.php file to make it easier to display the data. Here is my code: function ...
0
votes
1answer
30 views

Mass Update Broken Links

I am looking for a miracle. I highly doubt there's a way to do this but just thought I'd ask: I've been managing a multisite install on an old outdated server with old outdated pieces. We just spent ...
1
vote
0answers
155 views

Help With Custom Image and Text Widget

I recently got into making a custom WordPress theme and I've learned a lot along the way, but I've hit a roadblock with making a custom widget.This is the basic output HTML I'd like my widget to ...
0
votes
2answers
575 views

Recovered Wordpress installation (on localhost) links broken and images not showing

I initially had a wordpress installation on a free hosting service. After the hosting suffered an attack I got a backup of all files and the database and am recovering the site on my localhost (using ...
1
vote
0answers
11 views

WP Plugin for onpage link suggestions [closed]

I am searching for a good Wordpress plugin which suggests me relevant onpage links in my articles. The plugin from here, I cannot handle as a noob and I think it does not what I want to.
-1
votes
2answers
30 views

Automatically add class to link based on link text

I am wondering whether it is possible to automatically add a class to a series of links based on the link text. The scenario is as follows: I am displaying a list of links on a page in Wordpress ...
0
votes
0answers
24 views

How to automatically convert a form with HTML link into post

I am developing a website where people can fill in forms. I would like to enable users to fill in an embedded link together with some text in a way that it is automatically converted into a post. Now ...
1
vote
2answers
52 views

Remove link preview in discussion dashboard

It can be sometimes bothersome when, in the Discussion (Comments) dashboard, where the admin can see a list of comments, moving the mouse over a link will cause a preview of that link. Sometimes the ...
0
votes
1answer
18 views

How to I prevent WordPress from switching external HTTP links to HTTPS?

The website has an SSL certificate and uses https://, but when I link to a website using a text link pointing to http://domain.com and then preview it the link is updated to https://domain.com. What ...
0
votes
0answers
22 views

Best practice and technology to Offset anchor links

I am using anchor links in the Front Page of this Website. They are in ACCUEIL, SPORTIVES, VOYAGES and CONTACT. In order for the anchor links to land in the right place, below the menu upper bar, is ...
0
votes
1answer
245 views

bloginfo(); outputs wrong urls without https on inner pages

Template header has lines like this <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/icons/favicon.ico"> The problem is that bloginfo('template_directory') and ...
0
votes
0answers
26 views

How can I add a sortable link_updated column to the Link Manager?

In the link manager there is no column for the link_updated field in http://example.com/wp-admin/link-manager.php How can I add this sortable column? I've tried cobbling together something ...
0
votes
4answers
2k views

Get post / page ID from ACF Link field

I'm trying to recieve post ID from link using ACF link field: <?php $link = get_sub_field('offer_link'); $id = get_the_ID(); if( $link ): ?> <a href="#post-<?php echo $id; ?&...
0
votes
1answer
29 views

How to change the link on the logo at the menu?

I'm working on my site, it been done with a site builder so the logo on the menu has a default link to my homepage, but I need to change this link so it goes to another page instead of the default ...
0
votes
1answer
153 views

Securely log in a user without a password using a link?

I'd like to use links from my application to log users into Wordpress in their browser, but I'm concerned about whether this can be done securely. Obviously using any sort of static URL pattern seems ...
0
votes
0answers
13 views

how to display country/region/subject/post reasonably

Using USA, Canada, and Australia for example, I'd like a main page showing the three countries.  The next page would be states, or provinces, along with a default of nationwide.  The next page would ...
0
votes
2answers
370 views

How to remove a link of date archive

I want to remove the link from the date, this link leads to archiving. I'd be happy to get help - thank you very much
0
votes
1answer
43 views

Creating a link to the first post in a category

I can't seem to find an answer to this. Maybe you guys can help. I'm working on post navigation links. So far I've figured out Next and previous as well as latest post. What I need know is a link to ...