• How can i add the category description?

    I couldnt find it at the settings

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • frenchomatic

    (@frenchomatic)

    It shows for me unless I am mistaken. You do mean the main text at the top don’t you?

    Autoteile & Reifen auf Rechnung
    In dieser Kategorie finden Sie Autoteile, Autozubeh?r und Autoreifen in einer gro?en Auswahl, die man problemlos ….

    https://www.bezahlen-rechnung.de/autoteile/

    https://www.bezahlen-rechnung.de/autoteile/amp/

    Thread Starter Gujte

    (@gujte)

    @frenchomatic

    Hi, thats correct. But i got the solution with following code in the archive.php of my amp template:

    
    <?php echo category_description(); ?>
    

    Ahmed said, that there is a solution within the plugin.

    @custom fields: For the bottom of the category/archive i use a custom field (content at the bottom of the category).

    Now i get the content with following code:

    
    <?php if( get_field('inhalt-unten', 'category_'.get_queried_object()->term_id) ): ?>
    			   	<div id="category_description2">
    				
    				<?php
    				$catid = 'category_'.get_queried_object()->term_id;
    				the_field('inhalt-unten', $catid); 
    				?>
    				
    				</div>
    				<?php endif; ?>
    

    But images are not “amp-ready”. Is the “custom-field” extension of your plugin solving this issue?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    @gujte

    Yes, Since ‘the_field’ is part of Advanced Custom Feilds, I suppose it does.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘category description in archive.php’ is closed to new replies.