Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
0answers
24 views

display archive as collapsing links

I would like to output the following - 2015 -October - my post is good - another post September - 2014 - January -February I want to be able to output a nested listed of the ...
1
vote
0answers
13 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
33 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.
1
vote
0answers
55 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 ...
1
vote
0answers
20 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 ...
1
vote
0answers
55 views

How to Next and Prevous Navigation Buttons on the end of the page with custom image Using Wp Post Navigation Plugin

I am New to Wordpress and Don't know Coding hecnce on my website i have two section one for blog and other is episodes with seperate catageory and to navigate between the post in same catageory, So ...
1
vote
0answers
27 views

Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?

I have a number of websites that were previously on a Windows IIS environment. We migrated them over to Linux and of course all of the links to media files are now broken because Linux is case ...
1
vote
0answers
164 views

Custom Links menu items include in Search Results

Wrote this function to display the menu items into search, it is working, on search it includes the menu items but the link to them is not correct, by default search items contain link to Permalink/...
1
vote
0answers
88 views

How to filter the image embed code based on link type

I want to add a new class to the <a> that gets generated around an <img> when it's inserted into a post, but only if the link type is set to "Media File". I see that similar info is ...
1
vote
0answers
185 views

Internal Links that Automatically Update

I am currently building out a big site with a lot of content right now and am struggling with an aspect of internal linking. I had assumed I'd find lots of people with the same issue, however as I can'...
1
vote
0answers
267 views

Get the url of a page template without using the page slug and ID

Can I get the url of the page "page-template-contactus.php" using "template-contactus" only?
1
vote
0answers
25 views

I want to allow the use of a data-flw attribute in links in comments

I have come up with two ways I thought this should work and I'm having no joy with either. First I tried hooking into the preprocess_comment filter. // Set allowed html in comments. add_filter( '...
1
vote
0answers
116 views

get_adjacent_post by language

I am using Polylang plugin, which assigns each post to a taxonomy 'language'. While using get_adjacent_post() I want to bring only those posts that belong to the language currently displayed. So I ...
1
vote
0answers
18 views

Add text excerpt and pictures to hyperlinks?

Is there a way to automatically add text excerpts and perhaps also pictures when one adds a hyperlink into ones post? A bit like when you e.g. share hyperlinks on LinkedIn? Thanks for any suggestions ...
1
vote
0answers
104 views

Default Link for TinyMCE “Add Link”

How can I set a default value for the "Add Link" function of the TinyMCE editor so when you press the button the URL will already be set to a predefined value, e.g. "http://www.google.com"?
1
vote
0answers
46 views

Wordpress changes URL?

I have an image which serves as an a href, the following a href doesn't work: <div id="buttonNext"> <a href="1-5/redrum-10"> <img id="buttonNextImg" src="../../resources/...
1
vote
0answers
2k views

How to generate a list of all urls

I'd like to display a list of all Urls of my Wordprees site. I print out a list of all taxonomy terms like this : <?php // Get all Post $html = '<h2>Articles</h2>'; query_posts('&...
1
vote
0answers
341 views

How to customize the “Insert/edit link” popup box?

is there a way to customize the "Insert/edit link" popup box in the editor so that it does something like this: Have a checkbox that says "Insert affiliate tag at the end of link" If the checkbox is ...
1
vote
0answers
55 views

How to apply default post categories to link manager plugin

I have a project with several custom post types - all sharing the default WP post category taxonomy. I would like to add the link manager plugin (Formally built into WP pre 3.5) to manage links - ...
1
vote
0answers
1k views

How to give a download link to a .csv file from the custom plugin?

I have made a custom plugin, which exports MYSQL table contents into a .csv file which gets saved in to wp uploads directory. Now, I am trying to give a download link for downloading directly a .csv ...
1
vote
0answers
245 views

Parent/child pages and link structure the right way

I've always wondered what's the best way to achieve the following with pages. Say I have a (part of a menu) that looks like this: What we do Design websites Develop websites SEO The 'What we do' ...
1
vote
0answers
121 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
0answers
78 views

Link Pop-up in custom plugin

I am trying to build a plugin, for one of my current task, and at a field it requires user to provide the URL their content would link to. I have added a text-box where user could paste the link they ...
0
votes
0answers
17 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&...
0
votes
0answers
12 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
15 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
0answers
17 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
0answers
17 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 ...
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
0answers
10 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
16 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
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
25 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
20 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
16 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 ...
0
votes
0answers
22 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
0answers
17 views

I’m wanting to make the payment link available to customers with “on hold” orders. Woocommerce

I’m wanting to make the payment link available to customers with “on hold” orders. Currently bank and cheque paying customers placing an order recurve a. Order confirmation with mailing and/or bank ...
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
0answers
13 views

How to add link to an image of a post in post slider(postboard)

I want to fix this issues without plugins. add_action( 'widgets_init', 'goodlayers_1_4_banner_init' ); function goodlayers_1_4_banner_init(){ register_widget('Goodlayers_1_4_Banner_widget'); ...
0
votes
0answers
22 views

Create custom shortcode for insert link in text editor

I'm developing mi first plugin, and learning at same time. The plugin allows to use more than 1 url in any link, I've been ok this far, but now I'm stucked. I am using shortcode to insert a link, ...
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 ...
0
votes
0answers
20 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
0answers
25 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
0answers
12 views

Is there a way to add an input field to edit link_updated on the Edit a Link page?

When I go here: http://example.com/wp-admin/link.php?action=edit&link_id=24 I want to be able to edit the link_updated field. But it's not here. How do I hook into that php file to add the ...
0
votes
0answers
8 views

A domain or subdomain alias, with all site internal links using the alias too?

I'd like to have a WordPress installation at domain.com. I'd like to have domain.net as a domain.com alias like this: If a user enters the site through domain.com, all the internal links use domain....
0
votes
0answers
63 views

transport postMessage not working on link hover color live preview

php code as below : <?php function airspace_custom_link_color(){ $test_color = get_theme_mod('test_color'); $test_hover_color = get_theme_mod('test_hover_color'); ?> <...
0
votes
0answers
12 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 ...