If they’re in the same DB, it’s easy enough. Pull them straight out of the DB using $wpdb. And there might even be a WP plugin or a BB plugin that does this for you.
If they’re not in the same DB, but on the same server, you can access them by prefixing the DB table with the DB’s name, e.g. mybbpressdb.bb_posts
, or something to that effect.
If they’re not on the same server, you need to create a new connection, using mysql_connect(), mysqli_connect() or a PDO instance. If you use either of the first two, be sure to use the parameter that makes mysql create a new connection — else it may discard the one from $wpdb.
Related Posts:
- Multiple Inputs in a Customizer Control
- Embedding a SOAP Client into a WordPress Plugin?
- Why do I get the timeout warning?
- What is the best way to customise admin files so they survive future upgrades?
- Verify nonce in REST API?
- Add custom html to last sub-menu item
- Automatic image renaming based on title
- Manipulating post meta in the customizer
- Rearrange elements outputted by comment_form()
- How to build custom WP admin with custom URLs
- Custom editor field displaying HTML in Visual editor
- generate unique number when registering a user
- Php custom query function assistance
- How can I manage my multiple wordpress websites from main website?
- How to set default values for options page
- How do I deque the default stylesheet?
- How to import custom data via XML, CSV, etc
- Widget Javascript code (ajax)
- User Roles Not Sticking
- Login form in popup
- Replace “WordPress” word in title of Dashboard
- How to remove query string from static resource in WordPress?
- Modify a theme to insert custom widgets?
- WordPress custom login page
- How do you modify the WordPress directory structure?
- Change WooCommerce product price based on category and GEO IP country
- How can I defer these JS files?
- Gallery IDS and Captions: hide/show on a per ID basis
- Properly customizing login/register form
- Add Custom API Call to WP-Login.php
- Choose sidebars column in widgets.php page [closed]
- Unable to sanitize in customizer and escape in theme without removing ability for user to use “< br >” to insert a line break
- Custom column working problem
- How to structure model showcase
- Admin search post meta
- WPML Plugin Not displaying multilingual Menus
- How to recover permanently deleted blog posts?
- Create “alternative/zebra” boxes in the content area?
- Add Field to WordPress Register Form
- How to remove footer from just homepage
- Create small dashboard widget
- Custom font size nav bar
- Can Username and Password be passed to WP Login page in an IFrame?
- Returning or use form data using a hook?
- Default Display Name As Username
- How to do big modifications to live site?
- If custom image header does not exist display text header
- How to change the “All Categories” label within the panel of my custom post type?
- inserting uploads into subdomain
- Target pages using a specific page template
- Show title bar only on archives / hide it on all posts and pages
- Rename WooCommerce sorting dropdown options [closed]
- Taking over my late husbands wordpress blog that we shared
- How to customize the WordPress 2014 theme, to have page using less horizontal margin?
- get_template_directory_uri() not working
- Creating php pages in wordpress and assigning them to wordpress pages
- Position a hard-coded menu item
- Can ‘edit_form_after_editor’ messages be varied for specific pages?
- How to customize a site hosted on wordpress.com locally [closed]
- Custom blog setting directs blog to index page
- Trying to set specific image dimensions and crop with ACF
- Using static pages on WordPress site
- Adding Multiple “Parents” in get_categories
- How to remove a settings section from the Theme Customization API preview pane?
- query_posts meta_key with current date
- Get custom field value from not-current page
- RSS feed showing deleted post
- Custom page template, not acting as page
- how or where wordress collect unlogged user session
- How to show parent taxonomy using get_the_terms?
- Customizing woocommerce product page
- No plugin populate user information in to form
- Best practice to generate token for email action
- how to change the url rediction of the woocommerce login page of the flatsome theme for my own in wordpress?
- My list of terms of custom taxonomy displays 7 times
- Customizer options limited to specific user roles?
- Woocommerce custom “My Account” Tab – Add Save button
- WordPress Using Zip code customer shop find without woocommerce plugin
- Can’t do a src to node modules folder
- Woocommerce – Remove cart button depending product (post) status
- how can custom permalink structure use for specify custom post type
- Login CSS style doesn’t load instantly
- Embedded Options in a Custom Metabox
- Query Posts to display all posts with category “custom field value”
- Trouble getting started in wordpress – my experience isn’t in wordpress.
- How do I display entries in the top menu based on conditions selected in the sidebar menu?
- custom loop issue
- Customizer API and pages
- Bulk product editing in wordpress
- Editing a theme’s templates
- How to setup a taxonomy that can have only one post assigned to it?
- How to delete orphan userdata from array in wp-options
- Logged in only custom page
- Custom Style per Post, How to Display Custom-Styled Single post on Homepage?
- Twenty Eleven theme, how to change style to a specific “format”
- Search results load individual post in slide out div
- Show Site Name on WP login screen
- Adding css and js to a blank page created with custom template
- Conditional tag
- A Voting system for a pageants