Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #481512

    Hi I need to set up some custom post types in my site. They will be to display Great War stories, photos and audio collected from people in and around my town in Dorset England. Before I start can you recommend a plugin to set up custom post types that works well within Enfold and is easy to use.

    Thanks
    Rob

    #481543

    Advanced Custom Fields!

    #481549

    I’ve started using the wp-types plugin will that be ok? There is a good tutorial to follow on YouTube called “WordPress Custom Post Types and Custom Fields – Part #1 – Setting up custom post types and fields” (sorry link embeds wrong video)

    • This reply was modified 9 years, 4 months ago by fanlokbun.
    #481962

    Hi,

    If that plugin works with what you are trying to do then I see no problem in using it.

    Best regards,
    Rikard

    #490282

    Hi I now want to add my new post types to display on a page. I have created a template by copying page.php and renaming it. I have added a PHP comment at the top of the file that states the template’s name. Where do I enter my new code and do I have to delete anything? I only want to display my new post-types in an array on the page not change the appearance. I am following instructions from the aforementioned tutorial but in that he adds them to the basic index page. I want to make sure I don’t damage the theme. This is my code so far.

    <?php /* Template Name: Great War Front Page */ ?>
    <?php
    global $avia_config;
    
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    
     	 if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
     	 
     	 do_action( 'ava_after_main_title' );
    	 ?>
    
    		<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    
    			<div class='container'>
    
    				<main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-page.php and that will be used instead.
                        */
    
                        $avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
                        get_template_part( 'includes/loop', 'page' );
                        ?>
    
    				<!--end content-->
    				</main>
    
    				<?php
    
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    
    				?>
    
    			</div><!--end container-->
    
    		</div><!-- close default .container_wrap element -->
    
    <?php get_footer(); ?>
    #491286

    Hey!

    we experienced issues with wp-types plugin in the past. However, in this forum we can only offer basic support related to our theme. If you need help with creating custom post types we recommend to use a plugin like for example https://wordpress.org/plugins/custom-post-type-ui/. If you have issues using this or other plugin, then please ask plugin’s author about it.

    You can find a tutorial on how to create custom post types here: http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/
    Have a look at this as well: https://codex.wordpress.org/Post_Types

    If you need help with this we recommend to hire a freelancer for this job. You can find one here: http://kriesi.at/contact/customization

    Cheers!
    Andy

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