• My blog posts do not have a parent page. The menu has 5 menu items which are the blog categories. The blogs show up on their assigned category page. So I can’t make it display the full blog posts from the admin panel as far as I know.

    I copied the archive.php file from the attituse theme and put in my code and put it in my attitude child theme folder.

    The code I tried is

    <?php the_content(); ?>

    as suggested here https://codex.www.ads-software.com/Category_Templates

    and

    <?php
    global $more;    // Declare global $more (before the loop).
    $more = 1;       // Set (inside the loop) to display all content, including text below more.
    the_content();
    ?>

    as suggested here https://codex.www.ads-software.com/Template_Tags/the_content

    It did not work… I put the code in the beginning of the file. I named the file the same “archive.php” and put it in the child theme.

    What do you think I am doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • for theme specific support, please post in https://www.ads-software.com/support/theme/attitude

    what is the full code of your edited file?

    Thread Starter marmarr

    (@marmarr)

    I don’t think this is theme specific but I could be wrong.

    Full code I tried is

    <?php
    /**
     * Displays the archive section of the theme.
     *
     * @package Theme Horse
     * @subpackage Attitude
     * @since Attitude 1.0
     */
    ?>
    
    <?php the_content(); ?>
    
    <?php get_header(); ?>
    
    <?php
    	/**
    	 * attitude_before_main_container hook
    	 */
    	do_action( 'attitude_before_main_container' );
    ?>
    
    <div id="container">
    	<?php
    		/**
    		 * attitude_main_container hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_content 10
    		 */
    		do_action( 'attitude_main_container' );
    	?>
    </div><!-- #container -->
    
    <?php
    	/**
    	 * attitude_after_main_container hook
    	 */
    	do_action( 'attitude_after_main_container' );
    ?>
    
    <?php get_footer(); ?>

    and

    <?php
    /**
     * Displays the archive section of the theme.
     *
     * @package Theme Horse
     * @subpackage Attitude
     * @since Attitude 1.0
     */
    ?>
    
    <?php
    global $more;    // Declare global $more (before the loop).
    $more = 1;       // Set (inside the loop) to display all content, including text below more.
    the_content();
    ?>
    
    <?php get_header(); ?>
    
    <?php
    	/**
    	 * attitude_before_main_container hook
    	 */
    	do_action( 'attitude_before_main_container' );
    ?>
    
    <div id="container">
    	<?php
    		/**
    		 * attitude_main_container hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_content 10
    		 */
    		do_action( 'attitude_main_container' );
    	?>
    </div><!-- #container -->
    
    <?php
    	/**
    	 * attitude_after_main_container hook
    	 */
    	do_action( 'attitude_after_main_container' );
    ?>
    
    <?php get_footer(); ?>

    this is very theme specific – your theme uses specific hooks to create the archive;

    please post in https://www.ads-software.com/support/theme/attitude

    [topic closed as duplicate – please continue with https://www.ads-software.com/support/topic/how-to-display-full-blog-post?replies=5 ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display full blog post in categories’ is closed to new replies.