WordPress.org

Forums

Simple Custom post type custom field
Custom post type reverts to the 404.php file (2 posts)

  1. Fandabydozy
    Member
    Posted 1 year ago #

    Set up custom post type, called 'work', and set up custom fields OK.
    Duplicated the archive page to archive-work.php and single.php to single-work.php added <?php $custom = simple_cck::get_post_custom($post_id) ?> to the resepective templates.
    Unfortunately post in the 'work' custom posts section will only show the 404.php error message.
    Any ideas why?
    Thanks

    http://wordpress.org/plugins/simple-content-construction-kit/

  2. sukandia
    Member
    Posted 1 year ago #

    hi,

    please try like this:

    <?php $custom = simple_cck::get_post_data($post->ID);
    	print_r($custom );
    	?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Custom post type custom field
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.