You can edit the sidebar.php
(or any sidebar-xxx.php
file, depends on your theme) and interface with your database using the wpdb class.
If your historical events are in the same DB as wordpress you can use the wpdb class straight away, if they are in another DB you can instanciate a new wpdb class with :
$my_db = new wpdb('user','pass','dbname','host');
Related Posts:
- What is the difference with get_sidebar and dynamic_sidebar?
- how do I get_sidebar into a varaible?
- Best way of making multiple sidebars
- dynamic_sidebar not rendering sidebar
- Get custom side bar on custom post archive page
- Add featured image to sidebar [closed]
- Sidebar Generator? :)
- How to exclude parent category but show child categories?
- Specific and Different Ads for each Post?
- Adding content to sidebars
- Twenty Ten child theme has post on an inner page. Cant get that page to use my desired template
- Template part vs Sidebar (differences)
- Change sidebar headers from H1?
- change sidebar or just widgets for 2 specific post type single posts
- How to delete wordpress menu
- CSS Twentyeleven / Sidebar has to be changed IN the CSS Stylesheet. Sidebar on the left side
- Why does the TwentyTen Theme sidebar have a class called ‘xoxo’?
- Dynamic Sidebar for subcategory of a category
- How to add Sidebar and Full width option in post editor
- how to exclude posts on current page from recent posts sidebar widget
- How to add a class when there’s no sidebar?
- Creating a different side bar for single posts than for main page.
- Sidebar loop – Thematic Framework
- How to have dynamic sidebar content per post
- From what hook on is it possible to conditionally add actions?
- Post thumbnails in sidebar & footer?
- Sidebar on the wrong side of the page
- author list not linking to correct page
- if statement in sidebar.php checking page id or template or title
- sidebar parameters (before_widget, before_title) not Working
- Remove Sidebar from WordPress [closed]
- Sidebar widget not displaying after simple code update.
- Check if sidebar is rendered?
- Not Getting Sidebar
- Where is dynamic_sidebar content defined?
- Why does my sidebar get dragged down on this specific uid?
- Common side bar for multiple websites
- Dynamic Sidebar Conditional [duplicate]
- Cannot retrieve author in sidebar of single.php
- Extra copy of sidebar appears in footer
- get_sidebar() will not work in footer.php
- Gutenberg get wp registered sidebars
- How do I show breadcrumbs when sidebar is not applied?
- Sidebar only shows up on blog page
- Create an array of “read next” posts using a dynamic offset
- Find sidebar.php in WP 3.9.2
- Sidebar not appearing on page template with custom posts
- get_posts() in secondary sidebar messes up content in primary sidebar
- Get specific sidebars $wp_registered_sidebars [closed]
- How to use full length of the upper part of the content and below of it is a content with a sidebar?
- register_sidebar_widget is deprecated since version 2.8
- display specific sidebar for each role
- WordPress – Allow dynamic text to be added into a sidebar upon page creation
- Sidebars are no longer working
- Change twentytwelve sidebar responsive relocation?
- Split the content of the_content();
- How to troubleshoot Sidebar not being generated
- Select a Sidebar from Page Creation
- Why is my custom sidebar always open on the widgets screen in Admin?
- is_user_logged_in function in a sidebar not working
- How to make sidebar float right and site content left
- How do I set is_active_sidebar?
- The WP home page corrupted after switching to new theme
- How do I fully rid of the 1px wide sidebar border? [closed]
- how do i get my sidebar above content on nanomag theme
- Change Sidebar for rewritten page
- sidebar / widget wont show
- Sidebar widgets are looping out of the sidebar wrapper
- Change page layout
- Need help with theme Business (Modern Themes): sidebar issue
- Children Pages Displaying Only Intermittenty
- I’d like to add an fa icon before a link in my ‘recent post’ side bar [closed]
- Extra sidebar in Twenty fifteen
- sidebar not displaying when using get data
- Echo there are no posts wp_get_archives
- How to change templates based on URL
- More than one dynamic sidebar
- How to add banners in sidebar of my theme [duplicate]
- Sidebar does not display on blog page, but fine with static pages
- is_home() and is_front_page() not working in sidebar
- Placing video content into a sidebar
- different contents and same sidebar approach?
- Sidebar not visible after changing to new domain
- Resizing Picture
- Sidebar not displaying on custom-page.php
- Searchresult sidebar change
- How to hide a Sidebar from other admins?
- How to create another sidebar to be shown on another page?
- Differentiate Between Parent & Child Categories
- How to change font in title of sidebar widget [closed]
- How do I load my site without the side bars? This is for an app
- Persistent sidebar.php [closed]
- How do I move the sidebar more to the right in TwentySeventeen?
- Remove Sidebar for Pages on Canvas Wootheme [closed]
- Sidebar not appearing
- How can I add custom sidebar to my theme? [closed]
- Woo commerce Single Product Sidebar [closed]
- How to hide sub categories in sidebar [closed]
- sidebar choice not saved for pages (but saved ok for posts/custom posts) [closed]
- Disappearing Widget Text area