I've looked everywhere for a solution, but have yet to find one. Here is the situation. I've created a custom content type using the plugin Custom Content Type Manager
and now have need to use these custom post types within pages that I've created in WP.
So I created a page called "Photos" and use a template php file to configure the layout / styles of the page. The plugin generated a sample template for me in order to get the custom fields that I've put in. It looks something like this:
get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php the_author(); ?>
<h2>Custom Fields</h2>
<strong>Image:</strong> <?php list($src, $w, $h) = get_custom_field('image:to_image_array');?>
<img src="<?php print $src; ?>" height="<?php print $h; ?>" width="<?php print $w ?>" /><br />
<?php endwhile; // end of the loop. ?>
The Problem:
When I use "the_content();" and the other php methods, they pull the content from the page called "Photos", and not the content from the custom content type created with this plugin.
Is there something I can override / rewrite so that the_content(); from the custom content type shows up instead of the pages' content? Is there a better way I should be doing this other than creating WP pages and using custom templates? I am fairly new to this whole WP programming business..