You cannot separate the markup from the output in this widget. The links are built from the result of mlp_show_linked_elements(), so you can use that to create the elements with a custom function or a new widget.
This will print the links to all connected pages:
mlp_show_linked_elements(
array(
'link_text' => 'text',
'show_current_blog' => TRUE
)
);
You can add a parameter 'echo' => FALSE to use the result as a value for a variable:
$links = mlp_show_linked_elements(
array(
'link_text' => 'text',
'show_current_blog' => TRUE,
'echo' => FALSE
)
);
// do something with the links …
echo $links;
Related Posts:
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Plugin upgrading: Widget settings
- Simple rich text editor in Text widget?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Need to create a Theme demo site that features multiple themes
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- Override dynamic_sidebar() in plugin?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- How to place random widgets in the WordPress sidebar?
- Override Widget class in plugins with custom plugin
- Pages with 2 Columns
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- Remove Widgets in Dashboard
- Themes VS Plugins [duplicate]
- Changing widget options via the functions.php when there are no hooks
- Conditional Display of Links in Widgets
- Created Widget Not Showing up on Admin Panel
- How do I register a stylesheet inside a WordPress widget?
- Detect if a plugin was included in a certain page
- Flickr plugin that will display photos from multiple group pools? [closed]
- Multisite Widget/Content
- WordPress author details plugin/widget
- WAMP to XAMPP WordPress transfer
- Widget for adding HTML markup to a page
- The plugin generated 3 characters of unexpected output during activation
- Get post values of form created by widget in sidebar
- Archive – same title for the first two posts
- How to display more than one instance for a widget?
- How to add media field to WP_Widget form function?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- Calendar Plugins – Featured Widget [closed]
- Widgets Scripts don’t load – but load when I reload the page
- WordPress plugin subscribe2 not looking the same as before migration
- Setup page on first login on multisite
- How can I inject options into an select tag inside the widget form?
- Add content to footer – above wp_footer
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Char limit on custom blog-post form? [closed]
- Trying to create a table/list of my EventBrite course listings [closed]
- How to add Wrapper Div/container element around WordPress Widget Content
- Disabling plugin but wpenqueue is not available
- Related posts widget or plugin needed
- Problem since update 3.5 [duplicate]
- Call plugin with php function
- How to disable a widget when dependent plugin is inactive?
- How can I delete a wordpress widget instance?
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Widget’s container?
- Add SideBar/Widgets Just Below the Post
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- WordPress Widget Not Saving Instance
- How to display a widget on a page with no theme?
- Widget where it can make changes to the container
- Widget content turns up before title
- Modify pages widget and make a plugin?
- wp_footer hook running twice
- jQuery slider widget similar to cnet.com
- Why aren’t my Follow Me links working?
- Is there any plugin to show number of clicks on the link?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- co-authors plugin – inline listing
- How can I display selected content from a seperate database in an Activity style widget?
- RSS Feed on WordPress showing code (hypertext) in articles titles
- Change language in SiteOrigin Widgets
- elementor development – custom widget like an inner section widget
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Using foreach loop for `$instance` of form and update array widget iteration
- One time call to external API in widget
- Shortcode generated widget to appear on same line as heading text and button
- How do I keep children of certain parent menus expanded by default on a sidebar?
- Registered sidebar area is not shown from plugin.
- Widget logic using woocommerce product category
- Custom content per post in widget
- Using slightly modified widget
- How to make wp multisite subdomain exist search
- Custom Widget not Available after Plugin Installation
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Use of apply_filter in plugin/widget class
- jquery conflict with widget page
- Template from scratch: Sidebars not showing widget
- conditional tags for the output of a plugin
- Widget redirecting to home page
- Plugin won’t activate, fatal error (widget class not found)
- WordPress plugin not eching popular posts
- Trying to output a “Most visited blogs” list in wordpress multisite
- How to use template field in the Event Organiser plugin widget
- Scrolling Ads? Live scrolling widget, not random on refresh
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- Issue with customizer and widget page
- Footer option is missing in Customiser
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- Use custom Javascript for a custom Elementor Widget [closed]
- Why my widget is not visible in the WordPress theme Twenty Twenty-Three
- Hide attributes based on previous selection