The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
1answer
17 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 ...
0
votes
2answers
788 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
vote
5answers
378 views

How to use wp_rel_nofollow to add nofollow to external links only?

I want to add nofollow attribute to only external links in the content of the post. Internal links should stay follow. So, can I use wp_rel_nofollow() to make only external links nofollow? Or do I ...
1
vote
4answers
671 views

A plugin for having rel=“nofollow” in posts?

I'd like to make all the links in posts on one of my sites to be with rel="nofollow" on links inside posts. I wasn't able to find a plugin that did the job except for WP-NoExternalLinks. It also ...
0
votes
2answers
1k 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
0answers
19 views

Open external links in iFrame or Lightbox [closed]

I would like to know how can i open External Links on a Iframe or a lightbox I dont want the visitors leave my website. Thanks
0
votes
2answers
947 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
0
votes
1answer
448 views

custom menu widget where menu title is a link

I am looking for, like the title of this question indicates, a custom menu in wordpress where the menu title itself is a link. It seems like a very simple thing, but after a lot of searching I've come ...
1
vote
2answers
27 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?
1
vote
1answer
516 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
68 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
719 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 ...
0
votes
1answer
676 views

Get parent page url show up when it's in child pages

I would like to ask that, how to get the link back to parent page when i'm in the child pages? I would rather to use a proper link instead of <a href="javascript:history.back()">Go ...
1
vote
2answers
2k views

Adding different classes to anchor in navigation menu

Is this possible? I want to add different classes to the anchors, so not the same on all anchors. How can I do this? PS: I am using this: function add_nav_class($output) { $output= ...
0
votes
0answers
11 views

How to occupy Wordpress slug [duplicate]

I'm wondering how to occupy a certain slug to prevent it from being used by my users. I want to make a custom redirect to redirect the users to my login page. So the url could be ...
0
votes
1answer
13 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
46 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 ...
3
votes
1answer
43 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
186 views

Turn raw url into clickable links

I have a custom field that contains a bunch of urls in it. I want them to be clickable links in that custom field only. How can I do this? I could just manually convert them to html links but that's ...
0
votes
2answers
43 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
0answers
33 views

How to retrieve referrer tag, and save in custom fields for each WC order?

I need to save the traffic source of each order for my Woocommerce store because I need to know what internal page or external website had resulted in that order. I'll need this for customer service ...
0
votes
0answers
15 views

Where wordpress try to find php file for site?

I have installed woocommerce. When I open site host.eu/product/category/something else `host.eu/product/sth' Where wordpress try to find .php file to run this page? ...
0
votes
0answers
12 views

Substitution of a Wordpress installation preserving the old one under a subfolder

I have a WordPress website (Website01 under exampledomain.com) and I want to build another one under the same domain but a different folder (Website02 under exampledomain.com/subfolder). That's not a ...
4
votes
1answer
12k views

Add custom menu item using wp_nav_menu_items filter

I have added a snippet to add a "Profile" link to my website navigation menu. My code: add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link'); function my_nav_menu_profile_link($menu) { ...
-2
votes
3answers
45 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 ...
0
votes
2answers
28 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 ...
0
votes
1answer
914 views

How to get current page menu item name instead of full menu item list

I would like to build a menu structure where you can only see the menu item of the current page like on this web site http://www.bigspaceship.com/services/ I search around and I have the following ...
7
votes
1answer
237 views

How to use wpLink without editor?

I would like to create theme option to add a link. Loading these scripts and triggering the dialog works fine if wp editor is present. wp_enqueue_script('wplink'); wp_enqueue_script('wpdialogs'); ...
0
votes
2answers
88 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, ...
0
votes
0answers
7 views

Subpage for custom post type not beeing loaded

A week ago I started working with wordpress. My project is to expand a friends website with a section where she can add offers (e.g. guided hiking tours) in a chronical way. Those offers should have ...
2
votes
5answers
8k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...
0
votes
1answer
49 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
0answers
21 views

What is the use of the URLs stored in the posts table

When a user adds a post in a WordPress site, the link of that post is stores in the database in wp_posts table. And if I changed the link in the database it doesn't actually change in real. For ...
0
votes
1answer
29 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 ...
0
votes
1answer
50 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
0answers
21 views

Plugin download monitor always links to same file

I installed the download monitor plugin to generate download-links for videos. I have created a couple of downloads and created a widget to display them. I can see the correct shortcode, when I use ...
0
votes
1answer
16 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 ...
0
votes
1answer
325 views

How to add a class to edit_post_link?

My goal is obtain "Edit" button like this: <a class="post-edit-link btn btn-default" href="{$url}">Edit this</a> The first attempt I was trying adopt was adding before and after params: ...
0
votes
1answer
21 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 ...
-1
votes
1answer
54 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
1answer
9 views

Access link page and not folder content of that link

I have a problem with some pages on my site. For example: when i access page called staff from www.example.com/staff it redirects me to folder staff from the root of the site where i have some images ...
0
votes
0answers
109 views

How to rewrite product links in WooCommerce

Please help me with this case, I try to do a lot of think but it not work. My website have 2 types of links and I want links like this: Post: domain.com/post-name.html Product(WooCommerce) : ...
0
votes
1answer
42 views

Fragment URL in navigation item without a custom link

Some of the pages in my navigation are fragmented urls that shouldn't actually go anywhere. In other words, I have a couple parent nav items like <a href="#">Services</a> that serve only ...
-1
votes
1answer
689 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
2
votes
2answers
101 views
0
votes
1answer
28 views

plugin admin subpage title and links in menu not highlited at current page

In my custom plugin subapges i want to echo their titles specifed in add_submenu_page() but i don't know how do that. This is part of code of my plugin which display links in left-side menu: ...
-1
votes
2answers
86 views

Trying to prepend a Hashtag symbol to the_tags links [closed]

I want to prepend a hashtag (#) in front of the tags on my post pages in Wordpress using jQuery. This code is not working: $('div.tags a').prepend('#'); This is the php: <div class="tags"> ...
1
vote
1answer
32 views

Change Read More in Child theme

Im like 99% done with my multisite. The only thing left to do is to change the read more link on the child theme. But I can't get it done. Main site (Dutch): www.jeroenbrugman.com 2nd site(english): ...
3
votes
2answers
183 views

Import and export links from WordPress.com to private site

Is there some way to export/import links from a wordpress.com site to a private site? I have a rather large directory of links. I fetch the opml file and the category levels are there, but when I use ...
0
votes
1answer
18 views

<a> with PHP within splits the link

I've finally found out how to call a the project-type in a link so the link changes depending on which page it shows. This is the code: <h3 class="widget-title"> <a href="../">Terug ...