Getting only the most recent bookmark?

As far as I know it’s not possible to query the links directly, but there is definetly a link_updated field in the wp_links table, so you can use wpdb to interact with it and return the latest (modified) links. There’s also a solution here. EDIT : Updating a link doesn’t change link_updated, but here is … Read more

Website bookmarks as a custom post type

Here’s a clean way to accomplish what you need. Register custom post types (sans post_tags and categories) Register taxonomies specific to your bookmarks Create a post meta box for the bookmark options (sample included). You could add a nofollow checkbox option to the meta box. Save post meta Here’s the whole shabang. add_action(‘init’, ‘bookmark_post_type’); function … Read more

Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php

I managed to order the link-manager.php by a custom column using this: /* * Sort links using the custom column link_image */ function sort_on_field(&$objects, $on, $order=”ASC”) { $comparer = ($order === ‘DESC’) ? “return -strcmp(\$a->{$on},\$b->{$on});” : “return strcmp(\$a->{$on},\$b->{$on});”; usort($objects, create_function(‘$a,$b’, $comparer)); } function brsfl_link_manager_order($links) { global $current_screen; if($current_screen->id == ‘link-manager’ && $_GET[‘orderby’] == ‘link_image’) { … Read more

Save Press This Posts in a Custom Post Type

Here’s a simple plugin to modify the Press-This post type: <?php /** * Plugin Name: Press-This Custom Post Type * Plugin URI: http://wordpress.stackexchange.com/a/192065/26350 */ add_filter( ‘wp_insert_post_data’, function( $data ) { $old_cpt=”post”; $new_cpt=”page”; // <– Edit this cpt to your needs! $obj = get_post_type_object( $new_cpt ); // Change the post type if( doing_action( ‘wp_ajax_press-this-save-post’ ) // … Read more

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş