Generate aggregated feed from member blogs

Here’s one option we use for a high volume global RSS feed. It’s worked out really well for us and has lower load times than trying to do some runtime combination. http://premium.wpmudev.org/project/post-indexer/ http://premium.wpmudev.org/project/recent-global-posts-feed/

Accessing + retrieving custom database in WordPress

It is OK. And you can access this table with standard way, throught wpdb To insert data to your table use this code: global $wpdb; $wpdb->insert( ‘exampleTable’, array( ‘column1’ => ‘value1’, ‘column2’ => 123 ), array( ‘%s’, ‘%d’ ) ); To breafly explain what this code mean. WordPress sanitizes values before inserting them into database … Read more

create functions based on array values

Can you use the __call PHP class functionality? http://www.php.net/manual/en/language.oop5.overloading.php#object.call You could use __call in your class and call your function for grabbing the page types and check them against the $name (first) argument and running custom code against it. For instance: __call ($name, $args) { $types = array (‘type_a’, ‘type_b’, ‘type_c’); if (in_array($name, $types) { … Read more

explain why is_single doesn’t work

Looks like you’re trying to display comments for a single post that has comments disabled. You should find if ( comments_open() ) statement just one line below. Paste your code there and it will work just fine: <?php if ( comments_open() ) : ?> <div class=”comments-link”> <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, … Read more

WordPress multi user registration sites

References I found several plugins and solutions for this. The most promising seemed to be MultiUser Management Plugin. Here’s a short and untested rip off from this plugin, as there’re easier ways to get the available/registered blogs and normally you won’t need their public API functions. Also I think that some stuff they use is … Read more

Best Way To Structure 3 Tiered Site

You are going to need a place to park all that static content, so that’s more or less got to be a post of some kind with a bunch of custom fields. Whether it’s superficially called a post, custom post type or page might not matter much after you’ve done all the hacking you’re going … Read more