Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Functions for generating a menu of WordPress pages

@talatorre

Member

aprendedor

This is how I understand the code:

function pages_table() {

global $bb; //calls global variable

// Compute the name of the table we need to query

$table = $bb->wp_table_prefix; //this calls the wp prefix from the wordpress integration settings, ex: wp_

if ($bb->wordpress_mu_primary_blog_id != “”) //checks for a WPMU id in the WP integration settings

$table .= $bb->wordpress_mu_primary_blog_id.”_”; //appends the id, ex: wp_1

$table .= “posts”; //appends “posts”, ex: wp_posts or wp_1posts

return $table;

}

To answer your questions the code works no matter which type of WP flavor you are using

Skip to toolbar