plugins - Wordpress - Post Page Associator Issues -


for client site working on, client wants able associate custom post types given page. supervisor has pointed me website of previous client did similar. used post page associator plugin (which seems have been removed plugins list).

here link plugin using: http://www.mediafire.com/?2dpbxac73rsn8l6

i've tried best modify code inside plugin handle custom post types wanted use (which changes included in download). main conflict comes piece of code (from previous client's page.php file)

<?php      $sidebar = new wp_query( $args ); //queries posts     $sidebar = wp_plugin_post_page_associator::get_associated_posts ($post->id); //looks associated posts via plugin, main offending line of code     if ($sidebar!="") : while ( $sidebar->have_posts() ) : $sidebar->the_post();     ?>     <div id="sidebar-content"> <!-- sidebar area -->         <h1 class="blue-text"><?php the_title(); ?></h1> <!-- title of associated post -->         <div class="divider"></div>         <?php the_content(); ?> <!-- content of associated post-->         <br/><br/>     </div>     <?php endwhile;  else:?>          <br/><br/>     <?php endif; ?> 

i wondering if there way determine kind of post type associated content can change wp_query settings accordingly. if comment out second line of code $sidebar, posts gets displayed in sidebar. there solution problem, or there better plugin this?

i found replacement plugin need , shows me how it: http://www.cssigniter.com/ignite/custom-post-types-relationships/


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -