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

What is this: data-wplink-url-error=“true” and why is it added to my links?

WordPress sometimes adds this to links created by the visual inline link editor: data-wplink-url-error="true" Why? What does this do?
0
votes
1answer
1k views

Inserting shortcode in href - any ideas or workarounds?

I have a problem with inserting a shortcode in <a> tag. I build a website for a client, and there's an Easy Testimonial plugin where client enters all the information regarding testimonial in ...
0
votes
1answer
69 views

Wordpress Intranet Link Not Working

I'm having trouble creating a link that works for our pending Wordpress Intranet. I don't have coding or web background so I've been trying to piece it together with info I find on the web. This ...
0
votes
2answers
785 views

How to make Link to go on the first post

I am wondering how to make a Link "Go to first post" While I have opened some post? Any suggestion is welcome. Thank you.
0
votes
0answers
32 views

how to remove replicating a tag inside loop?

The following code is a template-part which I use to display post excerpts. I want to wrap the link around the whole post excerpt but instead it gets replicated inside each element as seen in the ...
0
votes
1answer
1k views

How to pre-fill Google Forms URLs with logged-in WordPress user's data

We need to have our logged-in users' data (username , Email , First Name , Last Name) pre-fill the links to Google Forms existing on our site. Why? We have Google Forms spread out on our site that ...
0
votes
0answers
141 views

How can i link my featured image to be clicked and the file will be downloaded

Here, i have a modal, where it holds my featured image. What i want is, how can i link my featured image to a file/pdf so that if user clicks the featured image, then there will be a pdf downloaded. ...
0
votes
2answers
893 views

Need to change link URL embedded in multiple posts to new link URL

I have been working on a site where I have created over 150 articles and I have realized that a link I have pasted in at the bottom of all the articles is wrong. It needs to be changed from - ...
0
votes
1answer
29 views

Favorite websites with shortened hyperlinks

Suppose in the site there are frequent links to another website, always tree same, say Wikipedia. Is there a way to write links to Wikipedia in a shortened way, and tell wordpress to translate it? ...
0
votes
3answers
163 views

track all external links on blog via username

I’ve been searching for a plugin that can track all external links clicked on a blog. Unfortunately the ones that I’ve found are intended to track total clicks per link rather than tracking which user ...
0
votes
1answer
729 views

Embed/Link external web pages into my WordPress blog (Like Facebook grabs Image, Title, and Description)

I want to create WordPress posts where I embed external pages. As you know, when you paste a link in Facebook, it automatically grabs an image, title, and description. And when someone click it, it ...
0
votes
0answers
44 views

Site migration and how to write internal links with migration in mind

Hi Hope some one doesn't mind explaining this? I'm going to work on a replacement site while keeping the old one live, two questions here: How do I fool my PC to direct to the new installation? I ...
0
votes
1answer
269 views

Add a data attribute to list item element in menu

Looking to add a data attribute to a list item in a menu, I can see that some threads on here can add it to the actual <a> link tag, I am looking to add it to the list item itself <li> So ...
0
votes
1answer
932 views

Why is there /index.php/ in all my links? How do I remove it?

I recently realized that my rss feed is not working, because a plugin was assuming it's under mydomain.com/feed But it isn't. I get an 404 error. I figured out that instead my feed is under ...
0
votes
1answer
164 views

How to make current user's avatar + display name link to their profile?

I have searched and searched, but not finding a solution to my situation. I have a certain page where the user's avatar and display name are displayed. Currently these items are not clickable and do ...
0
votes
2answers
2k views

changing static link to relative link

I have self hosted my wordpress today, but I realised it is still having static link of my local installation, since now I am opening using my IP (as i haven't done DDNS yet) i want that link should ...
0
votes
1answer
33 views

Navigate to external link if last page or post in a category

I'm working on a project that ties in an old legacy site with a replacement Wordpress site. Is there a way I can add a link to a the post navigation to an external link when a user reached the last ...
0
votes
1answer
136 views

Problem to get the link of the default 'post' post type like the orther custom types

I am trying to create a paged mosaic list of posts for each post type (post, custom post types), but I'm having trouble to get the default 'post' post type to work. So in the frontpage, I'm using ...
0
votes
3answers
620 views

Permalinks not working after updating WordPress

Recently I have installed a new version of WordPress and immediately I tried to change permalinks to /%postname%/ and now it's not showing the result. Everything is default according to WordPress....
0
votes
2answers
2k views

List pages including both parent and child pages

I'm currently listing WordPress pages and child pages on a side widget using the following code. <ul class="side-links"> <?php wp_list_pages( array( 'title_li' => '' ) ); ?...
5
votes
3answers
2k views

How to generate expiring URL?

I have a custom post type Portfolio and each portfolio is a questionnaire. If I email the link of a portfolio to a client via email. How can I expire link after 10 minutes, So if client has came ...
0
votes
1answer
446 views

Links in new menu don't work

My links in navigation don't work if they're not exactly some menu from Admin Panel. Why? On my website http://pstrykamy.pl everything is working. I created a new page and a new template page - http:/...
1
vote
1answer
36 views

I am getting useless alphabets in images link

I dont know why i am getting extra alphabets and question mark in my image links. Please take a look Can any one tell me how I can fix this issue.
0
votes
1answer
2k views

Load post content into div with ajax

I'm currently using <!––nextpage––> to split my content into multiple pages. This is what my example post content looks like: <a href="http://linktopage.com/2/"><img src="blah1.jpg" ...
3
votes
2answers
4k views

Using filters to change href of nav menu page link

I'm trying to find a way to change the href of a nav menu page link from the parent theme's default, which goes to its relative page, to another url. For example, I have a menu link "Our Philosophy" ...
0
votes
2answers
2k views

How to create a link to jump to “Leave a comment” part?

I would like the create a link that point to the comment part. So when reader click on my link, it will scroll down to the place that they can leave a reply. I have read some tutorial which teach ...
0
votes
1answer
126 views

How to get template link?

If I create template-portfolio, how do I get the link of this template? Like: <a href="<?php the_link"> View portfolios </a> What would be the function or link here?
1
vote
1answer
1k views

Pending Custom Link in Menu

If I try to add a custom link to a menu, it says "Pending" and won't save. If I hit save, it disappears. This only happens to custom links - pages, posts, categories all work fine. I've googled this ...
0
votes
2answers
287 views

Add Filter to get_next_posts_link

As we see in the source, we can apply filters for $attr. So I create something like this function asdff(){ return 'class="iamclass"'; } add_filter('get_next_posts_link', 'asdff',10,2); or ...
1
vote
1answer
2k views

Open link in a new tab checked by default when adding a new link in visual post editor

When adding a link in the WP visual post editor you have to click the settings after adding the link and then click the Open link in a new tab to have it add a link with a target in a new window/tab. ...
0
votes
1answer
44 views

How can I generate a list of post-type specific categories?

I'm trying to generate a full list of post categories with links based on post type. So, let's say I'm on an archive page for the custom post type "reports" - when I click on a category link (for ...
16
votes
2answers
3k views

Add custom options to the wplink dialog

I managed to add a custom option-select for images with function attachment_field_credit( $form_fields, $post ) { $field_value = get_post_meta( $post->ID, 'first_image', true ); $...
4
votes
1answer
2k views

Removing link '<a>' from '<li>' menu for some “links” without JS

I want some of my navigation menu items to show plain text, without a hyperlink. Usually, this code appeared: <ul class="..." id="..."> <li><a href="">my item</a> </li> &...
0
votes
1answer
90 views

how to replace hostnames on certain external links?

I have a need to replace hostnames on certain external links. For example, I'd like to replace outbound links to http://www.example.com/whatever with http://staging.example.com/whatever throughout my ...
1
vote
2answers
39 views

How to add an image from web-link?

I currently have this code from a plugin. [imdbi meta_name=poster] This cache an Image Link, and it simply display the link, I want it to display it as an image. Is this possible?
0
votes
1answer
357 views

WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance

I am having an issue with initializing the inline link toolbar in a custom instance of the WP editor. The instance is added in a dynamically loaded modal using the wp_editor function and some ...
0
votes
1answer
38 views

Post Custom & Taxonomy 404 error

Basically the single Permanent link are giving me 404 errors. might be wrong? Code is below: function post_types(){ register_post_type('carta',array( 'labels' => array( '...
-2
votes
2answers
154 views

How to change Ugly link?

How to change Ugly link from www.test.com/?p=123 to test.com/123 I want to make two types of links: www.test.com/123-my-post-title-name www.test.com/123 The latter should lead to ...
3
votes
1answer
6k views

Why does WP not use relative links when linking pages?

Why is it that Wordpress 4.4.2 does not use relative links (get_bloginfo, or such things) when I use the "internal editor mechanism" to link to existing pages and posts in a site. My local WAMP ...
0
votes
1answer
260 views

Links in footer section

I'm currently trying to the Wordpress page of a friend. He asked me that the footer section of the site shall contain to links with the names "AGB" and "Impressum" with lead to new tabs with the ...
0
votes
2answers
443 views

Problem with site's search results “Read More” link?

I'm hoping someone will be able to help me with this issue. I noticed today that when I search certain serch terms in my Wordpress site's search box the link is messed up (shown in the image below ...
-2
votes
3answers
1k views

Wrapping my <li>'s with <a>

Whats the most simple way to change my wp-menu generated output from <li><a href="">nav link</a></li> to <a href=""><li><li/></a>? Do I create an array ...
1
vote
2answers
1k views

I wish to remove, disable or hide the comment authors' links to their sites from my home page

I wish to remove the author's links to their original website, from my page I know this is in either the functions.php or comments.php files. I'm not sure exactly of how to edit these php files, I'...
0
votes
1answer
2k views

How can I add this specific link hover effect to a WP site? [closed]

How can I use this css effect on a WP site ? I've tried all kinds of copy paste, but this doesn't get me anywhere. I'm kind of new to Wordpress and css, so I pretty much have no clue what to do. ...
0
votes
1answer
1k views

Add the title attribute to links

I want to add a title attribute to my link like this: <a href="#" title="here is the title">LINK</a> I know how to do this in html but I can't expect this from my users. I can't find ...
-1
votes
1answer
2k views

External Links Not Working [closed]

I am facing a problem that external links are not working in my website. I am clicking on links but nothing happens. There are no popups, or broken links, but still not working. Why?
0
votes
1answer
542 views

How to change dynamic link to relevant post

I currently have a theme that was created by another developer and I just need to change a few small things to get it finished. I'm a little stuck on this one point: A section of the home page pulls ...
-1
votes
1answer
4k views

All the Images in Media Library is showing broken links

The problem which i am Facing is that images in media library and in the front of the website is showing broken links. The fact that is even if i upload new images from admin that is also showing ...
0
votes
2answers
59 views

Reuse links in a post across different languages

I have posts in two languages, managed by WPML. In one post, I share multiple links which are updated in a regular basis. Updating the same links for both languages is not an option (for now I only ...