Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author mrwweb

    (@mrwweb)

    I’ll need more information to understand what’s happening and how it can be resolved. Please be more specific about what’s happening and what you would expect to happen instead.

    Providing screenshots and links are also helpful.

    Thread Starter newby2015

    (@newby2015)

    Sorry. But I did nothing special, just installed the plugin. Typed in a text and checked if the text appears but it doesn’t. There is no text at all. Thank you so much

    Plugin Author mrwweb

    (@mrwweb)

    Ah. I assume you meant “no” instead of “now” in your first post?

    If no text is showing up, it’s most likely that your theme does not show archive descriptions in your archive templates. To confirm this, try switching to a theme that does support it such as Twenty Fifteen or Twenty Sixteen.

    In this case, you’ll probably need to add it yourself.

    You can review the FAQ and use the_archive_description(); in your archive templates to show the description.

    Thread Starter newby2015

    (@newby2015)

    how could I implement the description of my custom post type to be shown via this snippet:

    <?php get_header(); ?>
    <h2 class="pagetitle">Archive for the <?php post_type_archive_title(); ?> Category</h2>
    
    <div id="content" <?php Avada()->layout->add_class( 'content_class' ); ?> <?php Avada()->layout->add_style( 'content_style' ); ?>>
    	<?php if ( category_description() ) : ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class( 'fusion-archive-description' ); ?>>
    			<div class="post-content">
    				<?php echo category_description(); ?>
    			</div>
    		</div>
    	<?php endif; ?>
    
    	<?php get_template_part( 'templates/blog', 'layout' ); ?>
    </div>
    <?php do_action( 'avada_after_content' ); ?>
    <?php get_footer();

    where do I need to put “the_archive_description();”?
    Thank you so much.

    Plugin Author mrwweb

    (@mrwweb)

    You can replace category_description(); with it:

    <?php get_header(); ?>
    <h2 class="pagetitle">Archive for the <?php post_type_archive_title(); ?> Category</h2>
    
    <div id="content" <?php Avada()->layout->add_class( 'content_class' ); ?> <?php Avada()->layout->add_style( 'content_style' ); ?>>
    	<?php if ( category_description() ) : ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class( 'fusion-archive-description' ); ?>>
    			<div class="post-content">
    				<?php the_archive_description(); ?>
    			</div>
    		</div>
    	<?php endif; ?>
    
    	<?php get_template_part( 'templates/blog', 'layout' ); ?>
    </div>
    <?php do_action( 'avada_after_content' ); ?>
    <?php get_footer();
    Thread Starter newby2015

    (@newby2015)

    Thank you. The title gets showed but not description at all, any other idea? :(((

    Plugin Author mrwweb

    (@mrwweb)

    What file are you editing?
    What post type archive do you want the description to appear on?
    What’s the URL you’re expecting to see the description?

    Thread Starter newby2015

    (@newby2015)

    I am testing it on a local server right now so there is no url to show up.
    I am editing an archive page “archive-slug.php” in the way you mentioned above. Is is a custom post type archive page. The title shows up but no description.

    Plugin Author mrwweb

    (@mrwweb)

    I’m a little stumped. If you’re still not seeing it, my best guess is that you’re either not looking at the right page or the post type slug for archive-{post_type}.php is wrong.

    – What’s the title when you look at it?
    – What’s the URL of the page (I don’t need to access it, just want to see the URL)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No Text inside the archive page’ is closed to new replies.