Custom Post Type archive link in WYSIWYG editor
Custom Post Type archive link in WYSIWYG editor
Custom Post Type archive link in WYSIWYG editor
You’re not echoing the result, it’s just returning which isn’t output to the page. You should be able to change return $result; into echo $result; and have it display. Just be aware that as you have your code now, it’s not going to return or echo a proper link. My guess is you could use … Read more
The code you found works if you’re using the Classic Editor. It takes POST data (as in, a POST HTTP request) and converts it before it enters the database. So, in addition to only updating a certain meta field, it also only works from the point you add the code forward. Any old links aren’t … Read more
Add custom attributes to link in Gutenberg
I ran a search on the wordpress plugin directory there are several options. Terms to Links looks like it should work for you. It automatically links to terms in your content to that term’s page. Can be used for tags, categories and custom taxonomies.
Sorry, but no. 🙂 You can’t simply use the html-button in the wysiwyg-editor. Both are different programms and have nothing in common except for their location. You’d have to unregister the current buttons, write code for a new one (that fits your likings) and then add this one. You’ll find hundreds of tutorials for adding … Read more
You can use the antispambot() function for this. Example: <a href=”https://wordpress.stackexchange.com/questions/22957/<?php echo antispambot(“mailto:[email protected]?subject=Hello there’); ?>”>Some link text</a>
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
Have you tried this plugin: http://eskapism.se/code-playground/simple-fields/ It’s quite capable and should do what you want without getting your hands too dirty.
Use custom post types for links. You can do anything with CPTs that you can do with the old blog roll … and much more. See also: How to do a custom bookmarks post type? Website bookmarks as a custom post type Aaron Parecki: Personal Bookmarks Mark Wilkinson: WordPress Press This With Custom Post Types