displaying custom post type content

Community Forums Forums General Discussion displaying custom post type content

This topic is: resolved


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

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


    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() {
    		array('labels' => 
    				  '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



    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



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

    You can find me @arya_prakasa



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

    • This reply was modified 2 years ago by  Kevin.
    • This reply was modified 2 years ago by  Kevin.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.