We were just testing out the most recent version of your plugin because it sounded interesting. We found a couple issues we were hoping you could fix.
After implementing the new widget on a test site the TwentyFourteen theme, it seems that your widget loses the CSS formatting, when compared to the default Links widget.
Here’s an image of what I’m talking about:
https://pasteboard.co/2AmeUY1U.jpg
Also, we run WP_DEBUG 24/7 with logging on all our test sites, and we got quite a few PHP Notices from your plugin. We got each of these, MANY times:
PHP Notice: Undefined offset: 9 in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 91
PHP Notice: Undefined index: categorize in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 317
PHP Notice: Undefined index: show_images in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 318
PHP Notice: Undefined index: show_description in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 319
PHP Notice: Undefined index: show_name in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 320
PHP Notice: Undefined index: show_rating in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 321
PHP Notice: Undefined index: show_updated in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 322
PHP Notice: Undefined index: hide_invisible in /XXXXXXXX/wp-content/plugins/my-link-order/mylinkorder.php on line 323
Hoping you can fix. Thanks.
]]>You may change what you like, but it won’t appear on the real blogroll.
]]>The images in this widget, and also the default widget, are missing width and/or height attributes. Where could they be added?
Thanks for a nice plugin.
]]>I am using the short code code you posted on another thread an it works well, but it does not grab what is chosen in the Target area of the Link settings. What can I do to add this?
<?php
/*
* WordPress Shortcode
* Install : Drop in your functions.php, or create a simple plugin (and drop all your functions there)
* Description : Displays the blogroll of a site
* Dependencies : Can be used with My-Link-Order plugin, or without it
* Usage : write the shortcode in any post/page [myblogroll]
* : to display only one category use this [myblogroll catslug="blogroll"]
*/
function printLinks( $atts, $content = null ) {
extract( shortcode_atts( array(
'catslug' => ''
), $atts ) );
$ritorna = "";
$taxonomy = 'link_category';
if (!function_exists('mylinkorder_get_bookmarks')) {
$args = array('orderby'=>'name','slug'=>$catslug);
} else {
$args = array('orderby'=>'order','slug'=>$catslug);
}
$terms = get_terms( $taxonomy, $args );
if ($terms) {
foreach($terms as $term) {
if ($term->count > 0 && $term->slug!='uncategorized') {
$ritorna .= "<br /><h3>".$term->name."</h3>";
if (!function_exists('mylinkorder_get_bookmarks')) {
$bookmarks = get_bookmarks( array(
'orderby' => 'name',
'order' => 'ASC',
'category_name' => $term->name
));
} else {
$bookmarks = mylinkorder_get_bookmarks( array(
'orderby' => 'order',
'category_name' => $term->name
));
}
foreach ( $bookmarks as $bm ) {
$ritorna .= sprintf( '<a class="relatedlink" href="%s">%s</a><br />', $bm->link_url, __($bm->link_name) );
}
}
}
}
return $ritorna;
}
add_shortcode('myblogroll', 'printLinks');
?>
]]>
Hi,
Thanks for creating this plugin, it saved me lots of headache!
are you planning to add pagination support in future releases?
this was fine when i had less than 100 links on a page but now it looks a bit odd.
Thank you
]]>Hello,
I have installed the latest version of My Link Order (3.5) and for some reason no matter what order I set the links to they always display in alpha order. I would like to point out that my WP theme is Snow Summit 1.0.5. This theme has not been updated since early 2011. Would this have something to do with it? Any ideas how fix this?
I’ve just added new Link Categories but they are not appearing on my dropdown when on the My Link Order page. I’ve tried this on two separate WordPress sites and both are having this issue. Did I miss something?
]]>I do not see a way on your widget for me to select ONLY ONE category to show, unless, perhaps, I use the “include link ID” category.
However, the sql id for the category is unknown to me.
The WP link allows me to select just one category of link to show in the widget, surely yours does as well, must be missing something…
thanks
]]>Hello,
Is there a way to get My Link Order not to display links I’ve marked as “private”? There are some links within a category that I want to keep for my own reference, but not display on the page.
Thanks!
Timo
]]>This plug-in is not working correctly when using the function mylinkorder_list_bookmarks(array(“category_orderby” => “term_order”, “orderby” => “link_order”)); to order the link categories.
It orders the links correctly, just not the categories. I narrowed this down to an issue in taxonomy.php where it renames the orderby field name to t.name if it is a field that is not recognized.
I changed the code in the mylinkorder_list_bookmarks function and got it to work.
add global $wpdb;
to the top of the function
then replace
$cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0));
with
$query = "SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt inner join $wpdb->term_relationships tr on tt.term_taxonomy_id = tr.term_taxonomy_id inner join $wpdb->terms t on t.term_id = tt.term_id where taxonomy = 'link_category' ORDER BY t.".$category_orderby." ". $category_order;
$cats=$wpdb->get_results($query);
]]>
I love this plugin but how can I get it to display the description of the link in addition to the link text? I don’t see a setting in My Order Links configuration to ask for this.
]]>The widget displays in my front-page sidebar only when I am logged in, and disappears as soon as I log out. All public users / anyone else viewing the site would not see the My Link Order widget.
This is independent of the category/categories used, link order, etc.
I have only seen this behavior with this widget.
website: https://www.nowlikephotographs.com, the My Link Order widget should appear at the top of the right sidebar.
Thanks,
Brendan
]]>I’ve been using My Link Order with WordPress for a few years, and I think it’s a great plugin. However, I just upgraded to WordPress 3.5, and now I see a strange error message on the main page of my website/blog (https://www.kristinjanz.com). At the top of my outgoing links section on the lower right-hand side (heading: Outward), I see the following message, repeated 4 times:
Warning: Missing argument 2 for wpdb::prepare(), called in /home/kristinjanz/kristinjanz.com/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/kristinjanz/kristinjanz.com/wp-includes/wp-db.php on line 990
When I did an internet search for the first part of this message, to see if it was a known problem, I saw it on several different websites, but I couldn’t find any information about how to fix it.
Does anyone know how to make this go away? My computer skills aren’t that great, and I have absolutely no idea what the message means.
Thanks!
]]>I just upgraded to WordPress 3.5 and found that this plugin displays a list of errors in the sidebar above where the links are, like so:
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/blog/wp-content/plugins/my-link-order/mylinkorder.php on line 666 and defined in /home/username/public_html/blog/wp-includes/wp-db.php on line 990
]]>Hello,
I’m having trouble with the ordering of my links. I’ve set the ‘Link Order By:’ to be ‘My Order’ but the links are not ordering as I arranged them.
Anyone have any thoughts ?
Regards,
Stephen
Hi,
We are using some home-baked filtering to allow <span> elements in widget titles, the purpose of which is to inject Font Awesome glyphs.
Your plugin is great, we love it, but it’s a bit of a road block with regards to Font-Awesomify-ing our widget titles.
Please allow users to specify the widget title, regardless of what link category is being displayed.
]]>So I have WordPress 3.4.2 running with My Link Order plugin version 3.3.2
Nice plugin ??
Would be nice to have the ability to explicitly specify by name which single link category I’d like the My Link Order widget to display, just like with the default Links widget that comes with WordPress.
Would also be neat to be able to include/exclude link categories by their names rather than IDs.
— Marat
]]>Hi,
I use the links in a menu (PixoPoint).
My guess is I have to change a php file somewhere with:
“wp_list_bookmarks() with mylinkorder_list_bookmarks()”
to get it to work.
Can anybody tell me which file?
I found 2 php files in WordPress (with the word link in the name), but neither has “wp_list_bookmarks()” in it
Thank you, Ron
]]>Hi,
We use this plugin a lot and are thankful for your work.
One suggestion: If I happen to be running the widget prior to ordering the links, and debug mode is on, the entire SQL query, to include my table names, if printed to the browser.
My specific complaint is the db prefix being printed to the browser. That seems excessive. I can find out what my tables names are very easily, and no one else should be able to, ever, under any circumstances.
My suggestion would be just run something less informative, or even better, prevent the error my creating the necessary db columns on plugin activation rather than upon ordering the links.
Thanks again for a very clever and useful plugin.
]]>Hiya Andrew,
Been using your plugin for a while now. Great work!
I noticed the other day though that the plugin was generating error notices on the admin site. It turned out to be a small typo _orderby
instead of orderby
.
Please find the fix below and I hope you’ll incorporate it in the next release ??
Line 339:
$instance = wp_parse_args( (array) $instance, array( 'categorize' => '','category' => '', 'category_orderby' => 'order', 'category_order' => 'asc', '_orderby' => 'order', 'order' => 'asc', 'exclude' => '', 'exclude_category' => '', 'include' => '', 'limit' => '', 'title_li' => '', 'link_before' => '', 'link_after' => '', 'between' => '', 'show_images' => '', 'show_description' => '', 'show_name' => '', 'show_rating' => '', 'show_updated' => '', 'hide_invisible' => '' ) );
replace with:
$instance = wp_parse_args( (array) $instance, array( 'categorize' => '','category' => '', 'category_orderby' => 'order', 'category_order' => 'asc', '<strong>orderby</strong>' => 'order', 'order' => 'asc', 'exclude' => '', 'exclude_category' => '', 'include' => '', 'limit' => '', 'title_li' => '', 'link_before' => '', 'link_after' => '', 'between' => '', 'show_images' => '', 'show_description' => '', 'show_name' => '', 'show_rating' => '', 'show_updated' => '', 'hide_invisible' => '' ) );
Hope this helps & keep up the good work!
Smile,
Juliette
Great plugin, thank you.
I can’t seem to get the widget to display links in reverse chronological order. I have it set to Sort links by UPDATED, but selecting ascending or descending has no effect. Any ideas?
Thanks!
]]>How do I have only one category show? If I put the slug in either Exclude Category or Include Category, nothing shows on the page.
]]>Links revert to original order; doesn’t seem to work in 3.3.2
]]>Hello,
It seems that mylinkorder_get_bookmarks() doesn’t order by “link_order” parameter.
I’ve got the following code:
$social_follow_links = mylinkorder_get_bookmarks(array(
"category_name" => "Social Follow",
"order" => "ASC",
"orderby" => "link_order")
);
but it always returns the links/bookmarks in the name order, not link_order. When I update an order of the links/bookmarks in the WP admin by dragging-and-dropping the link_order
attribute gets updated.
Is there different way to do it? I need to use mylinkorder_get_bookmarks()
as I’m constructing my own HTML for links.
Many thanks
]]>I am using the plugin and want my links to open in a new window, and can’t get them to do so. The individual settings for each of the links are set to _blank target – but on the pages that I have the my link order displayed they still open in the same window.
Is there a line of code in the plugin files I can alter to make this happen?
Any help is appreciated,thanks!
]]>I use the my link order and it worked fine till now on WP3.2.1
I updated to WP3.3 and now the links are shown in regular order and not by the custom order.
Have anyone encountered in this? is there a fix for that?
Thanks
]]>I have spent hours trying to figure this out, and I have no idea why my links are not showing up at all when I change my widget to the “My Link Order” widget. They just disappear altogether. I am using the most recent version of wordpress (3.2.1 at the time of writing) and think this may have something to do with it? What could I do to troubleshoot this problem that I might have not tried? I am using widgets with the dynamic_sidebar function. My links are there when I use the regular links widget.
This is my site that I’m currently working on :https://jacquelinerennebohm.ca/testing/.
Help me please!!
]]>Great plugin, but in the widget, the order “notes” for links do not exists it’s “rating”. Can you fix it ? thx
——————————————–
FIX
——————————————–
Line 312 :
if ( in_array( $new_instance['orderby'], array( 'order', 'name', 'rand', 'ID', 'description', 'length', 'notes', 'owner', 'rel', 'rss', 'target', 'updated', 'url' ) ) ) {
To :
if ( in_array( $new_instance['orderby'], array( 'order', 'name', 'rand', 'ID', 'description', 'length', 'rating', 'owner', 'rel', 'rss', 'target', 'updated', 'url' ) ) ) {
Line 395 :
<option value="notes"<?php selected( $instance['orderby'], 'notes' ); ?>><?php _e( 'Notes', 'mylinkorder' ); ?></option>
To :
<option value="rating"<?php selected( $instance['orderby'], 'rating' ); ?>><?php _e( 'Notes', 'mylinkorder' ); ?></option>
——————————————–
Il y a une erreur lors du classement des liens dans le widget. La liste de sélection propose de trier les liens par “notes” alors que le terme exact est “rating”. Le tri ne s’effectue donc pas correctement.
]]>i just posted part of this code in other threads, but here’s the full version
what motivated me was that Relevanssi plugin doesn’t search inside the links, and the solution is doing a page with a shortcode, [myblogroll] in this case
function printLinks( $atts, $content = null ) {
$ritorna = "";
$taxonomy = 'link_category';
if (!function_exists('mylinkorder_get_bookmarks')) {
$args = array('orderby'=>'name');
} else {
$args = array('orderby'=>'order');
}
$terms = get_terms( $taxonomy, $args );
if ($terms) {
foreach($terms as $term) {
if ($term->count > 0 && $term->slug!='uncategorized') {
$ritorna .= "<br /><h3>".$term->name."</h3>";
if (!function_exists('mylinkorder_get_bookmarks')) {
$bookmarks = get_bookmarks( array(
'orderby' => 'name',
'order' => 'ASC',
'category_name' => $term->name
));
} else {
$bookmarks = mylinkorder_get_bookmarks( array(
'orderby' => 'order',
'category_name' => $term->name
));
}
foreach ( $bookmarks as $bm ) {
$ritorna .= sprintf( '<a class="relatedlink" href="%s">%s</a><br />', $bm->link_url, __($bm->link_name) );
}
}
}
}
return $ritorna;
}
add_shortcode('myblogroll', 'printLinks');
note that:
– the code is redundant, in case of deactivation of my-link-order
– i’m exluding the category ‘uncategorized’ in this example
Updated to 3.1.4 and now it is no longer sorting with my custom order. Previously worked before updating.
]]>