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

In the function add_submenu_page() you have to specify a callback function at the end. Like you did it in the 2nd submenu page. You have to add this function to your code! Example: add_submenu_page( ‘my-parent’, ‘Subpage title’, ‘Subpage title’, ‘manage_options’, ‘my_subpage’, ‘subpage-handle’); function subpage-handle() { echo ‘<h1>Subpage title</h1>’; } In this function you can echo … Read more

Read more link to external webpage

Yes, you can use the Read More filter: https://codex.wordpress.org/Customizing_the_Read_More#Modify_The_Read_More_Link_Text Per the discussion below, in this case, there’s a plugin called Page Links To that may solve your problem. You would create a post in WP but set its permalink to the external URL you want to link to, so it would appear on the front … Read more

My custom link works only on home page

You link to the anchor, so you have to put all link in there. And you’ve done it. But there are some additional “//” in your URL, so it’s not valid URL, so browsers may ignore some part of it. Just remove those “//” and it should work just fine.

How to automatically nofollow a set domains? (I seem to have half of the answer)

Instead of the linked option you could just go with something using jQuery. Try adding something like this to your primary theme or plugin javascript file. (Usually something like main.js.) jQuery( document ).ready( function($) { $( ‘a[href^=”https://google.com”], a[href^=”https://yahoo.com”]’ ).each( function() { $( this ).attr( ‘rel’, ‘nofollow’ ); } ); } ); For any additional URLs … Read more

Links in nonalphabetic order

Well, the plugin My Link Order does exactly that. My Link Order allows you to set the order in which links and link categories will appear in the sidebar. Uses a drag and drop interface for ordering. Adds a widget with additional options for easy installation on widgetized themes.

Twitter links in widget don’t work?

Try this out. I went through and replaced ” with ‘ /* These prefixes and suffixes will display before and after the entire block of tweets. */ $prefix = “”; // Prefix – some text you want displayed before all your tweets. $suffix = “”; // Suffix – some text you want displayed after all … Read more

Enumerating over a category of links

Recycle the core You could simply take the widgets code from core 1), rename the class and such and alter it to your needs. OR you could simply extend the core widget class and just alter what you need changed (overwrite the methods in your extending Widget class). Than add a plugin comment on top … Read more