displaying custom post type content

Community Forums Forums General Discussion displaying custom post type content

This topic is: resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Kevin 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #61452

    Kevin
    Participant
    Post count: 75

    What I’m trying to do is set up CPTs for homework assignments for groups of teachers (clusters). I have a CPT (Cluster 1, for example) that gives wysiwyg fields to enter homework by subject (math, science, etc). I want to display each cluster’s daily homework. So a post would be: Cluster 1 and would show assignments for math, science, social studies and so on. Each cluster would post its daily assignments in a CPT. Here’s the code for one cluster

    function create_post_type() {
    	register_post_type('cluster1homework',
    		array('labels' => 
    			  	array(
    				  'name' => __('C1_Assignments'),
    				  'singular_name' => ('C1_Assignment')
    				),
    			   'public' => true,
    			   'has_archive' => true,
    			   'menu_position' => 5,
    			   'rewrite' => array('slug' => 'c1assignments')
    			   
    		)
    	);
    }

    My question is – how do I display each clusters CPT content on a specific page (Cluster 1, Cluster 2 and so on)?
    As you can see, I haven’t gotten myself around CPTs yet. I am using Advanced Custom Fields with the CPTs I create

    #61453

    Kevin
    Participant
    Post count: 75

    I followed this tut http://www.carriedils.com/genesis-2-0-archive-settings-custom-post-types/ but when I click on view – I get a 404 error

    #61455

    Arya
    Participant
    Post count: 4

    Try to re-save permalinks settings (Admin Dashboard → Settings → Permalinks )


    You can find me @arya_prakasa

    #61481

    Kevin
    Participant
    Post count: 75

    I can now see the post titles but the custom fields are not showing

    • This reply was modified 1 year, 3 months ago by  Kevin.
    • This reply was modified 1 year, 3 months ago by  Kevin.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.