Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you let me know exactly what you’ve changed in your theme, so I can take a closer look?

    Thanks!

    Thread Starter mootscat

    (@mootscat)

    I actually had to restore my functions.php file because the changes I made deleted some other aspects of my publishing that I needed.

    Can you let me know exactly what lines I am supposed to edit? I need the PUblicize functionality but also all of the other aspects of my posts.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That depends on how and where the Custom Post Types are created for your site? Do you see a register_post_type function in your theme’s functions.php? If so, could you copy it and what it contains, and paste it here?

    Thanks!

    Thread Starter mootscat

    (@mootscat)

    Yup!

    register_post_type(
    		'recipe',
    		array(
    			'labels' => array(
    				'name' => __( 'Recipes', 'progression' ),
    				'singular_name' => __( 'Recipe', 'progression' )
    			),
    			'public' => true,
    			'has_archive' => true,
    			'rewrite' => array('slug' => 'recipes'),
    			'supports' => array('title', 'excerpt', 'editor', 'thumbnail','comments', 'author'),
    			'can_export' => true,
    		)
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Excellent. Now go ahead and change the line that says;

    'supports' => array('title', 'excerpt', 'editor', 'thumbnail','comments', 'author'),

    Instead, it should now be:

    'supports' => array('title', 'excerpt', 'editor', 'thumbnail','comments', 'author', 'publicize'),

    That should do the trick.

    Thread Starter mootscat

    (@mootscat)

    Yay! That worked. Thank you SO much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Publicize Custom Post Types’ is closed to new replies.