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
2answers
378 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 ...
0
votes
2answers
295 views

Custom loop pagination links not working

I'm bringing up an issue that could not be solved after googling for solutions over a few days. The goal I have to meet is to output a pagination for a custom post type named office-magazines with ...
1
vote
2answers
1k 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
17 views

Creating Menu Links in a Custom Theme

I'm building a custom theme for my own portfolio and I'm just going to use the static menus I have in HTML template design. Within this though I would like to add a function that sets the link ...
0
votes
1answer
438 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
1answer
214 views

How do I hide the 'Edit' link in publshed posts

I've noticed that the 'Edit' link is being displayed at the foot of my published pages. Clearly, this is undesirable because it allows readers to edit the posts. How do I remove the Edit link from ...
0
votes
1answer
149 views

Propper way to set anchor and url param

I need to make a link between to pages, (HOME-> CustomPost Archive) where in the second page esist a form, so I want to go directly to the form. so i made somethink like this: <a href="<?php ...
0
votes
1answer
158 views

Show Subcategory Name Instead of Parent Category

im trying show subcategory link and name instead of parent category. Is there a way to do this ? function get_category() { $buffy = ''; $selected_category_obj = ''; $...
0
votes
0answers
334 views

Custom Post Type archive link in WYSIWYG editor

I would like to add a link in the WYSIWYG editor to the archive page for a custom post type. I have a custom post type case-studies and would like to add a link to the archive page in the tinyMCE ...
0
votes
0answers
513 views

In-page link works in Firefox but not in Chrome

This is a follow-up to: https://stackoverflow.com/a/48521592/1697709 The standard way of using http://example.com/page#design as link into <h2 id="design">Design</h2> does not make ...
-1
votes
1answer
84 views

How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?

I have links on my website that use the before and after pseudo elements to style them. I would like to append and prepend brackets to all links. Like this: This is an example of a paragraph in a ...
1
vote
1answer
50 views

if I create 'front-page.php', then how do I link to post index?

I want to have a custom front page and a blog page. So I created the front-page.php file, which will include my custom markup. I don't want to have blog post index on my front page, so I created home....
0
votes
1answer
85 views

how redirect users to custom login page when user comment must “login to reply” is clicked?

I am building my website on Wordpress and I have created my custom login page.But for a post when an user comments and other nonlogged see the comment with along with a line down "Login to reply".And ...
1
vote
1answer
80 views

Do I need to use the esc_html() function on hard coded links?

I understand when using certain WP functions like site_url(); you should escape these with the esc_html(); function in the following manner: <?php esc_html(site_url()) ?> My question is, if I ...
1
vote
0answers
58 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 ...
0
votes
1answer
27 views

Unwanted Autogenerated Link

I have a website and a link to websitemagazine.com appears on many "website design" phrases throughout the whole website and I didn't insert the link. It also appears in the page source when viewed ...
1
vote
1answer
30 views

Taxonomy linked to pages

In my product pages I've added many custom taxonomies. One of these is the taxonomy called "colecciones". As you can see for instance in this URL:https://www.editorialufv.es/catalogo/comunicacion-...
0
votes
1answer
27 views

How to manage the links of a new taxonomy

I've changed my functions.php file adding a new taxonomy called "autor". Here the code: add_action( 'init', 'create_autor_nonhierarchical_taxonomy', 0 ); function ...
1
vote
0answers
28 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 ...
0
votes
0answers
150 views

What is the proper way to call a function (from functions.php) on a link click?

When using frameworks, we have routes where we can configure a callback functions for links, in drupal too there are menus that can be used to do the same. So i would like to know if there is a proper ...
0
votes
1answer
19 views

The cart, checkout, and shop links not getting removed

I uninstalled woocommerce plugin but yet the shop, checkout and cart links in navigation bar is persistent. The theme I'm using is Compass. But whatever theme I choose those three links do not vanish. ...
0
votes
1answer
498 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 ...
0
votes
3answers
298 views

remove or hide Link Relationship (XFN) form Menus tab

I'm looking for how hide or remove Link Relationship (XFN) from Menus tab (In red on the picture below)
0
votes
2answers
379 views

get_template_directory_uri() providing wrong path for img

I've recently uploaded my wordpress project to my web hosting and images arent showing properly, the source for the images is adding a %20 suffix to my theme directory. this is the error thats thrown ...
0
votes
2answers
74 views

Moved site, Old links in pages still pointing to old host

I am sure someone has answered this but I have not found a definitive answer. I have a site that I moved from one site with an old domain to a new host with an new domain. I changed the site URL in ...
0
votes
1answer
103 views

Structure of post types for TV Shows and episodes

Dear I would like to know how I can make a structure similar to this in wordpress, that the series seasons and episodes are interconnected, what function could I use? example.com/serie/the-walking-...
0
votes
2answers
87 views

Classes CSS (Optional) - how do I reference this in php?

I've read an infinite (yes there seems to be more than I care to read) same articles on how to apply a classes to the anchor not the link element using nav_menu_link_attributes and a walker. However, ...
2
votes
3answers
2k views

Redirect user if it's not logged in

can you help me with little problem. I need to find a solution, how to redirect user to login page when he wants to download file over link in post content, so, I have some files and I want them to ...
0
votes
1answer
168 views

Change username link in admin bar

when i click on the username in the adminbar it redirect me to the edit profile page of buddypress. My question is,how can i change it to user activity page? thank you very much.
0
votes
0answers
109 views

Link For Portfolio Categories

I am using portfolio posts to show products. I've created 4 portfolio category. And placed my products under these categories. My problem is it wont give links like blog posts. When i am add a blog ...
1
vote
1answer
20 views

Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?

To explain... I have a loop that is getting the posts from a few different categories and for one category, I want to change the link that gets wrapped around the title. For example: I have 3 posts ...
-1
votes
1answer
337 views

ACF link withing website is good, but not external link?

I'm using this ACF loop (repeater field) where one field for linkedin is beign display: <?php foreach($people_one['directors'] as $directors): ?> <div class="col-five"> <div class="...
0
votes
1answer
111 views

Find internal links to post

I will change the url of an existing post. And I need to change my internal links from other post to this post, to the new url. The problem is I don't know which are the posts that link to this post....
0
votes
1answer
347 views

rebuilding/ rewriting a url to make it SEO friendly

I want my url to look like this www.example.com/events/United+States instead of how it currently looks like which is www.example.com/events/?country=United+States. I'm not quite sure how to go about ...
1
vote
0answers
197 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/...
0
votes
1answer
45 views

Automatically Add Page Links to Nav Menu

I wrote this code in my functions file to automatically add page links to the nav menu if a plugin is activated. It works perfectly on my test server but pages don't load any content below the header ...
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 ...
-2
votes
1answer
30 views

How to stop an image link continuing to link adjacent text from a shortcode?

I want to keep an image link to just the image, but it runs on to the adjacent text. I have an image that I attached a link to and made it into a shortcode: function data_integrity(){ return '<a ...
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
1answer
29 views

Remove link function from oembed image or video

I would like to include oembed video on my site, but I would like to disable the link back to the original site. Is this possible? Thank you!
-1
votes
1answer
60 views

Wordpress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions

I have recently updated WordPress live website in production. After the update I am facing the following problems. wp-admin link is not working: it throws a 404 error page. Ref: http://bubblz.in/...
0
votes
1answer
424 views

Specifically Link To the “Leave a review” part of product page? [closed]

I am using woocommerce and am trying to figure out how I can specifically link to the review section of the page. I've tried stuff like: www.mywebsite.com/product-page/#review_form And while this ...
0
votes
1answer
760 views

Why does WordPress convert absolute URLs to relative URLs for menu items?

I want to use absolute URLs when creating custom menu links for my WordPress menu, but when WordPress renders the menu it removes the domain from the href data and simply renders them links as ...
1
vote
1answer
797 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 ...
0
votes
1answer
1k views

Parent link need to go first child submenu

I use this walker for menu in functions.php class main_menu_walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { global $wp_query; $indent = ( $...
0
votes
1answer
90 views

Creating a simple button inside of a widget

So I'm wanting to add a couple of buttons in a footer text widget. It should be a really easy task by just creating a class inside of a link, and then styling it with CSS, like this: <a href="/...
0
votes
1answer
32 views

Post Category link is same with Page link

Right now, our posts category is displayed as: /[category-name]. So when we have a post category named "Matcha" and a page named "Matcha", they have the same links and http://sitename.com/matcha ...
1
vote
1answer
891 views

Shortcode return function with link href inside PHP

I'm trying to write a shortcode in function.php with a link to share the current page in Twitter. However this link contains some PHP in the href and I can't figure it out how to make it work. Here is ...
0
votes
1answer
348 views

Multisite - Display different header content based on which site is accessed

I currently have multisite enabled for a project, with three websites in the build. I made some customizations to header.php (I'm using a child theme). I hardcoded a link into the header, and it ...