phreshboy
Forum Replies Created
-
YES! YES! Finally, thanks for the help, I have built many CMS sites with WP but have never used Custom Post Types. I love your plugin and I appreciate the help. This is perfect and I can now mark it up and customize the listing as needed. Once again, you rock.
That code is throwing an error, I am working on it now.
Fatal error: Call to a member function have_posts() on a non-objectI feel like we are almost there, at this rate I will have to give you a special thanks and a shout out on the site!
Ah HA! Thanks so much for your help, this example highlights exactly what my problem is. I have got this result before. What this code returns is
AWARD 1
ExcerptAWARD 2
ExceprtWinners:
Winner 1
Winner 2
Winner 3What I am looking for is
AWARD 1
Winner 1
Winner 3AWARD 3
Winner1
Winner2So that loop needs to get the award then catch the winners for that award. There are other ways of doing this, I was just hoping to use your plugin and custom post types to make it happen. I will keep looking and if you have new ideas, please let me know.
I know you don’t have to help me with this, but I appreciate it very much. I have beating my head on this for days now. Thanks again!
Scott~I can get either the “awards” post type to display or the “award winners” but not both nested together no matter what I try. I can look at the custom post type awards and see the award winners associated with them, I think I have everything configured correctly. I just cant seem to write a loop that gets the CPT to nest.
Thanks again for any help you can provide. This is a good plugin but implementation is proving to be a little tricky for me anyway.
Thank you so much for the help, unfortunately, I am still stuck. I can copy and paste the code from WP and I have worked with this many times, and it works perfectly. I appreciate the hint, however I still do not know how to display my award winners.
<?php $args = array( 'post_type' => 'awards', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo '<div class="entry-content">'; the_excerpt(); echo '</div>'; endwhile; ?>I will keep looking around, thanks again, if you can put me onto the right track for getting the rest of it that would be nice. wp_get_object_terms() seems like a hopeful way to go. I will let you know how it goes. The plugin is very nice by the way.