Display Page Categorie on LP

  • Author
    Posts
  • #76898

    Hi,

    I have Roseta on staging environment, trying to work out whether it will work for our needs.

    Our site is mainly bases on Pages, not Posts. I added some code to the child-theme functions.php to add categories to pages in the hope this would work to display pages on the Landing Page elements:

    function add_categories_to_pages() {
    register_taxonomy_for_object_type( ‘category’, ‘page’ );
    }
    add_action( ‘init’, ‘add_categories_to_pages’ );

    The theme doesn’t seem to recognize it though. Are they any code alterations I can make to the theme files that would help?

    Thanks

    Website: roadcycleholidays.com

    #77222
    Zed
    Cryout Creations mastermind

    The theme is designed to use pages for its ‘featured icon blocks’ and ‘featured text’ elements and posts for the ‘featured boxes’ sections.

    Just adding the category attribute to pages will not change how the theme looks for content – such a change requires extensive modifications to both the backend and the frontend code of the theme.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Display Page Categorie on LP’ is closed to new replies.