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.

learn more… | top users | synonyms (1)

12
votes
4answers
169 views

How do I check if I linked to a post before I delete it?

If I want to "safely" delete a post. I want to make sure that no link exists (within my blog) to "to-be-deleted" post. How do I do that?
10
votes
1answer
1k views

How to use “Add link” pop up for a WordPress widget

In the WYSIWYG editor of WordPress you get pop up if you want to add a link for a text. Is there a possibility to access this functionality? Because I want to use this pop up for a WordPress widget ...
9
votes
3answers
481 views

The Essential WordPress Websites / Weblogs?

I am looking for the essential weblogs / references / sites to place in my bookmark collection / sidebar. Is it possible that add a) either a link to existing bookmark collections b) additional sites ...
9
votes
2answers
187 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 ); $...
9
votes
2answers
792 views

How can I use the built in Wordpress “browse link” functionality?

I'm coding a widget and I'd like the user to be able to pick a link like you can when editing a regular posts or page (when you click on the little link icon and you get the AJAX search functionality ...
7
votes
1answer
279 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'); ...
6
votes
6answers
11k views

Disable image attachment links

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
6
votes
2answers
3k views

On the WordPress Admin section how do I link to submenu pages created for a plugin?

So i'm trying to create a WordPress plugin and I've created some menu pages using this provided function: add_submenu_page('my_plugin_menu', 'Edit record page', 'Edit record page', 'manage_options', '...
6
votes
5answers
2k views

Building a Digg clone using WordPress?

I am thinking of building a site similar to Digg.com (the old version). I think the best way in my case is to make a custom post type for the links and then use a a plugin such as TDO Mini Forms or ...
6
votes
1answer
94 views

How can I store page ID in a post instead of other selected permalink?

We're using Wordpress as a knowledge base. We just left mediawiki and jekyll for Github pages and reduced the amount of different systems from four to just one. One Wordpress installation for blogging ...
6
votes
1answer
511 views

Modify links when inserted by WYSIWYG editor

Is there any possibility to hook into the editor of WordPress so that if a link to an internal content is inserted via the WYSIWYG editor the post id of that linked post is added as a data attribute ...
6
votes
1answer
169 views

Is there a simple way to just insert a link to an image (without inserting an image)?

UPDATE: just found this plugin which does what I wanted and more: https://wordpress.org/plugins/b09-link-to-existing-content/faq I'm pulling my hair out with this, it seems so simple, but there is no ...
6
votes
1answer
8k views

remove links from images using functions.php

I am looking for a way to remove the attachment link from images in the post content. I would like to add this to the functions.php in my theme. I know you can disable this in the post on a per ...
6
votes
1answer
4k views

Add a class to links in the visual editor (how to get old dialog back)

New: Old: In short, i want a list of some classes inside the add link dialog. Because this was default there might be a easy way to get it back like this? Long: I like to have the ability to ...
5
votes
3answers
7k views

Linking a PDF as a downloadable document

How do I add a link to a PDF in the content, so that it downloads rather than opens in the browser windows? (I've uploaded the PDF to the media library and can insert the link but can't find an ...
5
votes
3answers
2k views

How to Get Next or Previous Post in a Specific Tag?

I'm trying to create links to the next and previous posts within a specific tag (on the post page itself), but I can't seem to find a plugin or source that does this. I want to be able to something ...
5
votes
1answer
2k views

Uploading Images in the Link Manager

In /wordpress/wp-admin/link-add.php there is the possibility to add an image to a link, but it belongs to the category "Advanced" and is really a little too advanced for an average user, which needs ...
5
votes
2answers
72 views

Portable Post Links

I quite often run into a situation where I develop a site on a staging domain, have my client fill it there with content, and then when everything's approved move it to production. Now, my ...
5
votes
1answer
724 views

Wondering how to turn your firefox bookmarks into a WordPress blog?

I was wondering this, too. I tried and spent quite a few hours trying, but I was finally able to proceed. I discovered a few things that won't be obvious to most people along the way, so I'm posting ...
4
votes
7answers
18k views

How to use relative links on my pages?

In my web pages I want to use relative links instead of absolute links. However, pages do not allow php code inside them, so i cannot do to from a url in a relative manner. How does one get ...
4
votes
2answers
8k views

Add CSS Class to Link in TinyMCE editor

In searching for a solution, I've come across the plugin to enable a dropdown of CSS styles already present within a stylesheet. What I want is to allow the editor to add CSS Classes from a textbox. ...
4
votes
2answers
6k views

Default Image Link Removal

Just wondering if there is a way to remove WordPress's default function of adding a tag around an inserted image. I assume its a "remove_filter" function like you can do for WPAutoP, but all my ...
4
votes
3answers
17k views

What is the link to my default “archive” page?

I'm using twentyten and have overloaded home.php to do some custom stuff. However, I would still like to have a page that lists all of my recent posts, archive-style. I can get to an archive page for ...
4
votes
2answers
1k views

How to auto-approve internal pingbacks?

Whenever I write a post on my blog and link to a previous post, that pingback shows up as a comment needing to be approved. I am running Disqus, but this was happening even pre-use of that plugin. ...
4
votes
1answer
13k 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) { ...
4
votes
1answer
110 views

Allow user to create instances of custom field

I have a custom field for a links page which takes a name and an URL and saves it in the post meta. However, I want the user to be able to click "Add new link" and a new custom box appears so they can ...
3
votes
2answers
3k views

Wordpress: How to get the current logged in author page URL?

Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ? In fact, I would like to display, for every logged in user, a "My ...
3
votes
4answers
6k views

Get the prev / next page links only (not title, <a> etc)

I currently use the following method to get a prev / next blog page link: <?php previous_post_link( '%link', '%title' ); ?> However this includes the outer element, name etc, I want just the ...
3
votes
3answers
4k views

Adding jquery and thickbox to WordPress theme

I would like to add thickbox for the template which I develop to WordPress. At this time I'm trying with a clean template that have only header.php, footer.php,index.php, and functions.php. I've ...
3
votes
2answers
71 views

Turning Broken URLs Into Search Terms?

I'm migrating a Typepad install to a Wordpress subdomain, and most of the links will be broken. The rewrites work so that: http://mainsite.com/blogs is rewritten to http://blogs.mainsite.com If ...
3
votes
2answers
643 views

Creating a Link Directory using WordPress?

I would like to create a dmoz like website, using WP. Any suggestions on plugins or site's architecture would be welcomed.
3
votes
1answer
1k views

What is the use of the wp_links table?

I'm wondering what is the use of the wp_links table, couldn't links have been implemented as a custom post type, if the menu system also uses custom post types?
3
votes
1answer
27 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> &...
3
votes
1answer
1k views

Removing custom post type from link search results

I have created a custom post type and disabled it from appearing in search results. However when I add a link from a normal post, I still get these entries from my custom post type available to link ...
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 ...
3
votes
2answers
202 views

Number of External Links in Comments - Moderation Option

I just ran over a problem to properly use the count of external (meaning no relative or absolute links to my own blog) links on my blog for the Comment Moderation count Option. It's labeled Hold a ...
3
votes
1answer
2k views

Issues creating a tinyMCE plugin that creates a custom link

I'm working on a plugin that works similar to the "link" button on tinyMCE: The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
3
votes
2answers
1k views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called "...
3
votes
1answer
376 views

Social Media Links on homepage - within posts/post loop

On my WordPress site I've got a social sharing bar that I created myself. Here's a picture of the social sharing bar: http://d.pr/i/ucSG - I have the social sharing links included within 'index.php' ...
3
votes
3answers
958 views

How to add a link in a image's caption?

I would like to add a link to the caption of a photo in one of my posts. I can type in the HTML for the link in the caption, but when I publish the post the link gets removed. How do you add a link ...
3
votes
1answer
45 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 ...
3
votes
1answer
103 views

What is the canonical way to link to pages?

I can easily link to my archives page by creating a link: <a href="http://server.com/wordpress/archives.php">Archives</a>. As I was editing my WP template, I noticed that there are a ...
2
votes
3answers
2k views

how can i add a menu link that goes to an external page

i started a new blog and i see that there are two pages it starts out with: Home About i want to add a third one but instead of having it load up an internal page, i want to have this go to an ...
2
votes
2answers
1k views

Add delete, approve, spam Links to Comments

Anyone know how to add quick comment moderation links for users who have permission to add/edit posts and comments? (Upprove / Unappove / Edit / Spam / Trash ). Note: in my comments.php I call the ...
2
votes
3answers
993 views

HTTPS page link in menu

Ok, so I have a wordpress site with a lot of pages and menus that I've defined in the appearance/menus section of wordpress. One of my pages has a little payment form on, which I'd like to link to ...
2
votes
1answer
3k views

Link submission website (ala Reddit)?

Pligg sucks, Hotaru CMS is dead and I'm not sure if the Nominate theme is what I want. Basically I'm trying to create a link submission website like Reddit with WordPress, this would basically mean: ...
2
votes
4answers
1k views

Open external links in a new window

Is it possible to make some sort of change or add a plugin that allows me to make every 'external' link open in a new window? Just an example: if my blog was called http//timmy.com/ and I wanted to ...
2
votes
2answers
137 views

How do I remove or disable “Or link to existing content” in “insert link” dialogue?

Don't ask why. Image below pretty much ask what I'm looking to achieve:
2
votes
1answer
310 views

Retrieving all Links from a Post?

i'm using the default "insert video" function from wordpress (which inserts a normal hyperlink to the video only) and would like to replace that link with something else like a video player. my ...
2
votes
3answers
539 views

Link Category Description

I'm pulling my hair out over this. In the Links manager, you can enter a description for the category (in addition to the link itself). However, in wp_list_bookmarks, there is no way to call this ...