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
2
votes
6answers
26k views

Change logo url link

I'm trying to change the logo url of the site to "mywebsite.com/side2", but it is not working, can anyone tell me where is the error in the code below? add_filter( 'login_headerurl', '...
1
vote
1answer
964 views

I can't edit my homepage - the page editor is just blank

I've been tasked with taking over the website for my company - going well for the most part, but I've hit a wall with the homepage. I'm trying to update the Latest Issue widget Problem is, when I ...
1
vote
1answer
13 views

How can I modify all existing <a> tags while keeping the urls themselves?

I want to modify all current links to Amazon on my site, to add a rel="nofollower" tag — they currently have an existing rel="noopener" tag which, as I thought, was always placed ...
0
votes
2answers
20 views

How to remove author name and link from a shared link preview?

I have a weird problem with a wordpress site I'm working on, when we share links for it on discord shared link contains my login name and a link to author posts page (index is a page not a blog page) ...
0
votes
0answers
10 views

From the Admin, how to open non-Admin links in a new window?

I'd like the Admin's behavior to be slightly different than the default: If I click an Admin link (say, go from Dashboard to Plugins), that happens in the same window - no change here. I'd like any ...
-1
votes
0answers
39 views

Hello how can i convert shortcode into url link

here is my shortcode- [restaurant-menu-and-ordering ruid="5a1dfcc1-ca0a-4e6d-845c-e928ea264284"]
0
votes
0answers
15 views

I want to change URLs structure of a classified ads site

I want to change URLs structures of my Classified Ads website and want to set as categories based links https://www.dashingworld.com/ad_category/mobiles-and-tablets/ TO For Main and SUb Categories ...
0
votes
1answer
65 views

widget to output a link to archive view

REVISED POST I am trying to go a different route as the suggested answer to this post didn't work for me. I am using child theme where I added nav widget with custom menu 'archive' containing only ...
0
votes
1answer
1k 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
0answers
13 views

../../page-name backend links are not rewritten

UPDATE: when selecting images in the media library, the view command leads to a wrong URL in the form of domain-name.com/image, though the actual URL is properly stored on the image details. On my ...
2
votes
2answers
2k views

How to append a URL parameter to all outbound URLs

Is it possible to append ?ref=myref to all external URLs? If so I'm guessing I will also need to check if a ? already exists and use & if so. I'm a WP noob just coming from Joomla, any tips / ...
0
votes
1answer
1k views

Creating a Back button on detail post page to go back to blog page with same query strings and page id

So, I would like to have a back button on the single post page that can be dynamic to the point to where it knows where it is in the query and bring me back to the blog page on the right page number ...
0
votes
0answers
17 views

i need to rewrite a custom URL

i want to rewrite this url: example.com/ygal/1 to be pointed to: example.com/?vk_callback=1 add_rewrite_rule('^ygal/(\d+)/', 'index.php?vk_callback=$matches[1]', 'top'); I have press on save setting ...
0
votes
1answer
736 views

Exists filter or action that change Add New Post link?

I want to know if exists some method from filters or actions to change the link of the Add New button in backend , for example the regular url is http://wordpress_install/wp-admin/post-new.php but I ...
1
vote
4answers
4k views

Create anchor from Wysiwyg editor

Is there any way to create internal anchors without using the HTML rendering option? I don't mind but I guess my customer will ;) Thanks!
0
votes
0answers
8 views

how can i add a nofollow link to the author link

Install a plugin for author box. Follow links are generated automatically. How can I change the link to nofollow in the author box a). above the author's name b). above the author's profile picture
2
votes
2answers
179 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
2k views

Menu custom link not working for external site

I've got this header menu in my site (made editing a theme), but i've noticed that the custom links pointing at local anchor section (like #section) correctly navigate in the same page to the desired ...
16
votes
4answers
4k 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 ); $...
0
votes
1answer
14 views

Remove Comment Author Link only for subscribers

I am using this function add_filter( 'get_comment_author_link', 'remove_comment_author_link', 10, 3 ); function remove_comment_author_link( $return, $author, $comment_ID ) { return $author; } to ...
0
votes
0answers
11 views

Open new links in a new tab option does not work

When adding a link a post, a page etc, I select the "the open in a new window" option. In theory, the link should always open in a new window: it does not and opens in the same page. What can I do? ...
0
votes
1answer
623 views

Direct link to “New post” in specific category?

How can i create a direct link to "New post" (/post-new.php), which will create a new post automatically added in specific category? In other words, i click on the link "new post in category one", ...
0
votes
2answers
2k views

Link to Portfolio page by id instead of name

I'm trying to make a dynamic button that goes to portfolio page (no matter what ID/name it has), it's currently like this: $portfolio_page = get_option('theme_portfolio_page'); $portfolio_pid = ...
-1
votes
1answer
15 views

How to download file without login to wordpress account?

The following link is used to share individual customer/user to download invoice PDF file. But each time they have to login and download PDF file. I want this link should download PDF file without ...
0
votes
1answer
1k views

Remove all link title attributes

After reading this and this, I want to remove the title attribute from all links of my blog, as that is good from accessibility point of view. How this can be achieved? UPDATE I found a solution how ...
11
votes
6answers
84k views

Redirecting to old domain after migration

I have moved one of my website to a new domain, below is what i did. Backed up database Uploaded all the files to the new server. Imported sql into new server via phpmyadmin Now i have used this ...
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
3answers
26 views

How to change hover link colour for blog post (body) text only

I am using the Shamrock theme and I am happy with link colours on the main page however when you go into a blog post and hover over any links within the body they are red. I have tried multiple ...
0
votes
0answers
7 views

Latest Posts' links and recent links in Link Manager in single section / widget

I am using Link Manager in WordPress 5.4.1. Is there a way to display the latest Links combined with the recently published posts in a single section on the sidebar sorted by date ? I don't want 2 ...
0
votes
2answers
2k views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently get/...
0
votes
0answers
6 views

Audio page link not working

I have uploaded some audio files into my media lbrary (Savona Pro theme) and then successfully inserted the links on to a page. However when I click the link it doesn't work? Can anyone help as to why ...
0
votes
0answers
17 views

How to track which users click link/button?

I'd like to be able to track specifically which users click a link or button in a private paid members only section of my site. For example, if the user lands on the link site.com/media/1.pdf, I would ...
0
votes
1answer
1k views

Taxonomy link not working (leads to 404 page)

I've created a website where I use Taxonomies for adding an extra category future. This feature works in the backend (admin) and is showing up correctly under the article. The problem is that the link ...
0
votes
1answer
16 views

Problems styling a Custom Link in a Menu

I have a primary menu on my Wordpress site with links to other pages within that Wordpress site. However, the last menu option is a custom link that directs the user to an external site. That link ...
0
votes
2answers
3k views

How to remove anchor of current menu item in navbar?

Wordpress nav menu created by wp_nav_menu can highlight current menu item. How can i strip anchor from current menu item? For example, we have menu: <ul> <li class="current-menu-item">&...
0
votes
0answers
29 views

.com creates automated link in post

In classic mode, if we write "example.com", it creates automated link like : <a class="vglnk" href="http://example.com" rel="nofollow"> <span>example</span> <span>.&...
0
votes
0answers
6 views

Amazon Affiliate Native ads and Text+Images Affiliate links won't go live in WordPress

This is my first time asking a question. I am working for this website and my job is to add Amazon affiliate links to the blog posts. https://www.texasrealfood.com/ The problem is, when I add text ...
0
votes
1answer
1k views

How to not display a category post on blog page?

As you know, we can assign a "Category" to any post we write. We can also use a "Category" as link on the menu. Good! By default, WordPress will display all your posts in all the categories on your ...
0
votes
1answer
756 views

WordPress 404 Images - Images not found after deleted from media

I am trying to develop the website to find images that have been deleted from the media library as they were not needed. These Images that I have deleted have previously been on pages but have been ...
2
votes
2answers
2k views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
0
votes
1answer
21 views

Disable automatic embed links

Is there a way on current wordpress versions (5.2..), to turn of the automatic embed links(wp-embed.min.js), that will turn an url into an iframe? I have tried plugins, snippets, functions.php ... it ...
0
votes
1answer
14 views

author_link filter not work correctly

i want to change author link page. by default it's: site.com/author/user_nice_name but i want change it to: site.com/teacher/user_nice_name i used this code and it worked, but when i click on the ...
0
votes
1answer
70 views

My WP homepage works, but the other pages don't when accessing from out side of my network

So, I host my WordPress website on my PC. 192.168.1.5:25566 (port forward). On my LAN, I can access homepage and other pages on the site. But from outside the LAN, I can access homepage but cannot ...
0
votes
0answers
11 views

Cloned website in subfolder has wrong links

I'm sorry to ask you guys but I'm going crazy. I've been trying to figure my problem out but I spent 8 hours and still nothing seems to work. So here's my problem: I have copied my website in a ...
1
vote
0answers
23 views

Removing Title From Links to Site

So I've been using my wordpress site to blog. I've also been importing those blogs to Medium, and anytime I share the article the site title is appended to the end. So if the article is named "100 ...
0
votes
1answer
26 views

How to add a column into the link manager?

Inside WordPress admin panel, there is the "old" link manager, know also a Bloggroll. It has multiple columns in the overview, and I would like to add a column. How can I do this? (I only want to ...
0
votes
0answers
16 views

Some custom post types did not return an object

I wrote a function to register custom post types below - appetizer (working well) - vermicelli (working well) - pho (working well) - seafoodNoodle (X) - koreanSpecial (X) - koreanRice (X) - lunchBox (...
1
vote
1answer
529 views

How to eliminate permalink prefix in Wordpress Multisite

I have installed the multisite plugin for Wordpress; I have one website in English, and the other in French. However, when I go to Settings -> Permalinks, my English website shows this: I don't ...
1
vote
1answer
38 views

How to automatically nofollow a set domains? (I seem to have half of the answer)

There we go with my first question ever on WPSE. Hope someone can lend me a hand here :) I am sick of adding nofollow rel attribute manually on every single outbount link. I´m looking for a code ...

1
2 3 4 5
16