Title: Post Bookmarks
Author: grosbouff
Published: <strong>December 6, 2016</strong>
Last modified: April 4, 2019

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/post-bookmarks.svg)

# Post Bookmarks

 By [grosbouff](https://profiles.wordpress.org/grosbouff/)

[Download](https://downloads.wordpress.org/plugin/post-bookmarks.zip)

 * [Details](https://pcd.wordpress.org/plugins/post-bookmarks/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/post-bookmarks/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/post-bookmarks/#installation)
 * [Development](https://pcd.wordpress.org/plugins/post-bookmarks/#developers)

 [Support](https://wordpress.org/support/plugin/post-bookmarks/)

## Description

Manage links attached to a post through a metabox, and setup how they are displayed
in your posts… With a link favicon.

 * Nice GUI
 * Options page
 * Default link title and image based on its url (ajaxed)
 * Sort links by names or a custom order
 * Powered by the WP core bookmark functions
 * actions and filters hooks for developpers

#### Contributors

Contributors [are listed here](https://github.com/gordielachance/post-bookmarks/contributors)

#### Notes

For feature request and bug reports, [please use the forums](https://wordpress.org/support/plugin/post-bookmarks#postform).

If you are a plugin developer, [we would like to hear from you](https://github.com/gordielachance/post-bookmarks).
Any contribution would be very welcome.

### Localization

## Screenshots

 * [[
 * Post Bookmarks metabox in the backend editor
 * [[
 * Links displayed under a post
 * [[
 * Settings page

## Installation

 1. Upload the plugin to your blog and Activate it.

## FAQ

  How can I get only the links attached to a post ?

Use the function **Post_Bookmarks::get_post_links($post_id,$args)**.
 If you want
to display those links use the function **Post_Bookmarks::get_link_list($post_id,
$args)**.

The two parameters are optionals.
 $args should be an array of parameters – the 
same you would set when using the native [get_bookmarks()](https://codex.wordpress.org/Function_Reference/get_bookmarks)
function. Example :

    ```
    <?php
    $args = array('category'=>12);
    Post_Bookmarks::get_link_list(null,$args);
    ?>
    ```

  How can I get only the links NOT attached to a post ?

Use the the native function **get_bookmarks()** with the ‘post_bkmarks_exclude’ 
parameter. Example :

    ```
    <?php
    get_bookmarks( array('post_bkmarks_exclude'=>true) );
    ?>
    ```

  How can I style a link based on its domain, using CSS ?

Use the _data-cp-link-domain_ attribute, for example :

    ```
    li.post-bkmarks[data-cp-link-domain='wikipedia.org'] .post-bkmarks-favicon {
        background-image: url('https://wikipedia.org/static/favicon/wikipedia.ico');
    }
    ```

  How can I change the way links are displayed ?

Use the filter _post\_bkmarks\_single\_link\_html_ (located in the function **Post_Bookmarks::
get_link_html()**), for example :

    ```
    <?php

    function custom_output_single_link($output,$link){
        return $output;
    }

    add_filter('post_bkmarks_single_link_html','custom_output_single_link',10,2);

    ?>
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Post Bookmarks” is open source software. The following people have contributed 
to this plugin.

Contributors

 *   [ grosbouff ](https://profiles.wordpress.org/grosbouff/)

[Translate “Post Bookmarks” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-bookmarks)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-bookmarks/), check
out the [SVN repository](https://plugins.svn.wordpress.org/post-bookmarks/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-bookmarks/)
by [RSS](https://plugins.trac.wordpress.org/log/post-bookmarks/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.1.7

 * cleaned and updated doc.

#### 2.1.6

 * Fixed ajax actions
 * links IDs order is now saved (only) with ajax each time links are reordered, 
   and is a standalone PHP action

#### 2.1.4

 * Fixed ajax actions
 * Updated Font Awesome
 * debug_log() function
 * better way of saving links / handling bulk actions

#### 2.1.3

 * some code improvements + renamed some functions & filters

#### 2.1.2

 * improved filter_bookmarks_for_post: removed the ‘include’ arg which was incompatible
   with ‘category’, ‘category_name’, and ‘exclude’ bookmarks parameters.
 * improved Post_Bookmarks::get_tab_links.

#### 2.1.1

 * improved row actions
 * colorize the checkbox if the URL of the link is attached to the post

#### 2.1.0

 * remove ‘hide_from_bookmarks’ option (see FAQ)
 * fix protocol bug
 * fix url field not hiding when quick editing a link
 * bulk actions

#### 2.0.9

 * Renamed plugin from ‘Custom Post Links’ to ‘Post Bookmarks’
 * Upgrade routine for ‘Custom Post Links’ plugin
 * Improved class Post_Bookmarks_List_Table

#### 2.0.8

 * ‘Quick Edit’ mode
 * Link categories column
 * Better way of saving existing / new links
 * improved javascript (& includes URI.js)
 * ‘hide_from_bookmarks’ option
 * Filters on the ‘get_bookmarks’ hook to include / exclude our links

#### 2.0.7

 * cleaner code for blank row link + links tabe actions

#### 2.0.6

 * try to guess the link name from remote page title or domain (ajaxed)
 * URL as first column
 * better way to load JS

#### 2.0.5

 * Better output styling
 * Favicons : Option to automatically load URL pictures from Google API
 * New filter ‘post_bkmarks_get_for_post_pre’
 * New function ::get_blank_link()

#### 2.0.4

 * minor

#### 2.0.3

 * ignore targets (eg. ’_blank’) if a link is a local link
 * backend : use ‘_blank’ target for URLs in the links table
 * implemented links targets

#### 2.0.2

 * Importer and admin notice for links from the original [Custom Post Links](https://github.com/daggerhart/post-bookmarks)
   plugin (metas ‘_post_bkmarks’).
 * new function Post_Bookmarks::save_link()
 * Improved function ‘post_bkmarks_get_existing_link_id’
 * new function ‘post_bkmarks_get_metas’

#### 2.0.1

 * Do not use the same post meta key than than the original [Custom Post Links](https://github.com/daggerhart/post-bookmarks)
   plugin.

#### 2.0

 * custom sorting
 * options page
 * set the link domain as class in the link output
 * display entries in metabox using class Post_Bookmarks_List_Table (extends WP_List_Table)
 * store / read entries from the Link Manager plugin (Worpress core) instead of 
   metas
 * wrapped in a class, better code structure
 * use fontAwesome css, deleted drag_handle.png
 * various other improvements

#### 1.0

 * Forked from [Custom Post Links](https://github.com/daggerhart/post-bookmarks)
   by Jonathan Daggerhart.

## Meta

 *  Version **2.1.7**
 *  Last updated **7 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.5 or higher **
 *  Tested up to **5.1.22**
 *  Language
 * [English (US)](https://wordpress.org/plugins/post-bookmarks/)
 * Tags
 * [custom links](https://pcd.wordpress.org/plugins/tags/custom-links/)[links](https://pcd.wordpress.org/plugins/tags/links/)
   [post links](https://pcd.wordpress.org/plugins/tags/post-links/)[quick links](https://pcd.wordpress.org/plugins/tags/quick-links/)
   [related links](https://pcd.wordpress.org/plugins/tags/related-links/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/post-bookmarks/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/post-bookmarks/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/post-bookmarks/reviews/)

## Contributors

 *   [ grosbouff ](https://profiles.wordpress.org/grosbouff/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-bookmarks/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://bit.ly/gbreant)