You don’t need to do any programming for something as simple as this. On the menu page, create a menu with these links. Then on the widget page, use the menu widget that comes with WP to add it to your sidebar.
Related Posts:
- display most popular tags in two columns
- WordPress menu deletes when trying to add a hook
- dynamic sidebar not showing anything
- Custom Loop through category menu to include sub categories
- WordPress widget/sidebar dividers?
- Where do posts get the sidebar from?
- Missing sidebar parameter “fix” – before_content
- Dynamic Sidebars & Echo
- Child page menu in sidebar
- Hide subcategories (widget)
- How to determine if the sidebar is empty? Or not active?
- Removing sidebar on category pages
- Add a select-option to the default widgets
- Stuck with sidebar registering
- Don’t display a sidebar widget when on a specific page
- Retrieve the whole widget sidebar and pass it inside an html
- Loading Widgets Via Child Theme
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- PHP drop down menu for my get_category child of
- Widget Logic – display on page and all child
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Beyond widget side menu editing, with the php page, custom template
- how to run a php code in widget?
- My custom widget won’t stay in the widget area after I refresh the widget page
- How to change links in the 3 main categories, on widget category, to a javascript function call
- Can’t assign menu parent id or menu item breaks
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- Can’t extend some core classes
- Change Navigation Bar based on logged in or not
- hover image appears below placeholder instead of overlayed
- Show comments menu in dashboard only if the site has comment
- combine Code 1 with Code 2
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- get current product name in functions.php
- Count top level menu items
- How to add just one specific page to widget without plugin?
- get post based on category chosen in drop down – The ajax method
- How to use transient in this code for related post?
- create a select input with menus created on a custom options page
- Multiple WordPress Menus that will only display all pages
- Creating a related post section based on similar categories
- Menu — How to add “current-menu-grand-ancestor” css class
- Input type search in Menu
- Create onClick Event to Re-load a Widget
- Swapping wp_dropdown_categories function with wp_category_checklist
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- WP Walker using custom css classes
- How to put a variable in a instance in the widget
- How to output widget
- Change list item content in menu navigation to add a child element with specific class
- Extending the WP_Widget_Text class
- Proper syntax or method for keeping url in modified isotope / category links
- Menu Limitations
- Filter Select results based on selection
- How can I Add a variable PHP in the Menu Nav
- Where to place PHP code that inserts (or doesn’t insert) menu item?
- What is an equivalent of single_cat_title for getting the slug of the category?
- Issue adding sub category programmatically
- Adding an Avatar to the Top Nav Bar
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- how do I get a specific post from a post with a subcategory in WP
- WP grandchild categories in nested ul li
- Grab posts by multiple categories
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to show single category archive
- Move category description below post list in blog
- How to pick the default selected value in wordpress dropdown?
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Remove metabox from WordPress menu editor page?
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Get page that displays all children of taxonomy parent
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- How to add an arrow to menu items has submenus
- How to make my custom widget appear within WordPress widgets? Plugin development
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- get widget number from array dynamically
- selected option if current category is the value
- Adding widgets to my plugin page instead of WordPress dashboard
- Unique icons next to each WordPress menu item
- get_template_part based upon post’s category
- Theme developement – incative sidebars
- Title Case WordPress Menu Items
- how to save selected option in variable for rest api category filter
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Secondary navigation menu on one page
- Remove class in nav_menu_link_attibutes filter
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Why my image upload button is not working in wordpress widget area?
- Different post styles depending on category
- Display category name only once inside loop
- Adding a widget function into the php theme file
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- How to edit widget code to add unique class name to each div?
- Trying to store submenu items to render out after main menu
- Detecting classes, adding widgets, and adding divs in with a Nav Walker