You could simply include
the WordPress main file that it loads, wp-load.php
or wp-blog-header.php
at the very top of your forum’s header file.
If I’m correct, that should allow you to use WordPress functions inside your forum theme.
Example, at the top of your header, assuming the forum folder is in the root WP folder:
<?php include '../wp-load.php'; ?>
Related Posts:
- How to benchmark a WordPress installation? [closed]
- Modify existing plugin function using filter (without modifying the plugin directly)
- Making Custom Fields Standard in the Admin UI
- get_pages() not ordering as it should
- Why do folders have Empty Index.php Pages?
- Is it possible to use Gutenberg on the front-end?
- How to get shortcode working from custom meta field
- How to search in a Custom Field?
- Does WordPress not use relative URLs?
- How to override wp-login.php
- Remove Links from Login page
- create custom page for statistical data capture and reporting
- Make page template that is just an “include” of another?
- Is there a way to create invisible pages?
- How to handle security on a wordpress site? [closed]
- Which freelance sites are recommended to find WordPress developers/programmers, etc
- Count widgets of a certain type
- Custom widget select options needs to stay selected after save
- Syncing Avatars across multisite
- How to move the wordpress site from test url to main url? [duplicate]
- How can I get the intended URL in a 404?
- Creating user relationships
- Multiple sites/domains with content all managed by single installation of WordPress
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- Loop through custom fields with similar label / common chars in label
- title, content, feature images
- How can I make site-wide content editable, for example footer content
- Custom Facebook share button with custom title,url,image in wordpress
- Sort posts by multiple meta key values
- How to Call a static page in WordPress
- How Do I Remove The Right Hand Block On The Main Header?
- Category selectable homepage
- Create custom dashboard for Multisite admins
- Add custom profile field only for site admins?
- Integrate wordpress into index page
- Highlight comments of all the site authors
- Development environment
- Allow guests to use WP Customizer but disable save button
- Can I add/replace the WordPress image in the Dashboard
- Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme
- Adding comments to my custom theme
- Add content in between of foreach
- How to insert a writing panel between the title and the page content?
- Woocommerce product permalink not working
- Show custom message/info for authors in add/edit post page
- Data won’t save if metabox within conditional in admin. What am I missing?
- I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
- add_feed rewrite overwriting standard permalinks
- Create a page that dynamically loads data
- Editing a post template
- Gravity Forms – gform_field_value – query custom table breaks functions.php
- How can I apply custom sanitization to new usernames?
- Customizer – How to get theme mod range value?
- Let author add field to metabox by pressing a button
- Date Ordered Archive Page for single category?
- GUID URL Question
- Usage of custom post types in a custom admin menu
- How to set up conditionals in page templates?
- How do I change my permalink structure to a custom structure on an established blog?
- Customize Widget Navigation
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- Select input in metabox not updated
- display text generated via custom get query string
- Add admin page for specific post status (for example)
- Bootstrap slider not working
- How can I style the Comment Section of a blog post
- Custom Meta Box: Value saved in WordPress DB, but not shown in input field on Edit Screen
- Custom post-type working except for Selecting page-parent
- How could I change contact details in the footer?
- Editing a website made with wordpress
- How do I make elements in mobile only reverse order?
- Cannot replace header & footer using “the_content”
- Custom Route Returns 301/Passing Variable from Input
- Menu selection for header
- How to display custom admin pointers (tips/notifications) in Dashboard until dismissed?
- Custom password set/reset link in same URL format as default does’t work
- Two color in one Heading
- Creating custom setting in add media popup
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Upload image without resizing but insert in post with resizing
- Expressions and str_replace
- How to create a new blog in wordpress?
- Best way to move a site to a subfolder for testing purposes?
- Wonderflux Framework Static Homepage
- Creating Action Hooks For Automatic File Inclusion
- Integrate non-wordpress site into a wordpress site
- Taxonomy template by post type
- Pass the post ID
- To merge customized codes upon wordpress update
- Need Advice to Working with Custom Post Meta
- If I want social media icons that link to my site’s corresponding accounts, is that better to do with a plugin, or manually?
- Create advanced portal website with sections – taxonomy usage?
- Custom Slider Per Page created
- why jquery is not loading in wordpress page?
- Will too many overridden css rules lead to performance issues
- Use WordPress to create a custom CMS? [closed]
- Include plugin´s table in custom query
- Problems with WP 6.1.1 and the get_user_meta() function
- Show last child Child category instead of first child category on page
- How to search for replacement titles and contents, excluding image URLs