Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #807933

    sschwab
    Participant

    I have a custom post type called members that is hierarchical. I want to display this list in a page called family-list using the full page width template from the icon stack. I have duplicated the Fullwidth page output for Icon template in my child theme folder and renamed it page-family-list. I stripped away everything in the content section of the template and added the wp_list_pages function. The hierarchical list displays using indented ul as I want but I need to figure out how to get the page layout to work like the rest of my pages. Here is the template file:

    <?php

    // =============================================================================
    // VIEWS/ICON/TEMPLATE-FULL-WIDTH.PHP
    // —————————————————————————–
    // Fullwidth page output for Icon.
    // =============================================================================

    ?>

    <?php get_header(); ?>

    <?php wp_list_pages(“title_li=&post_type=member”); ?>

    <?php get_footer(); ?>

    #808099

    Christopher
    Moderator

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #808643

    sschwab
    Participant
    #808718

    Rupok
    Member

    Hi there,

    Thanks for writing back. I can see it’s working as expected as per your code. Do you want more styling? In that case you can wrap up your code within a div with a class name and styling by some custom CSS. Also I’d suggest you to keep the container. You can try updating your code :

    <?php
    
    // =============================================================================
    // VIEWS/ICON/TEMPLATE-FAMILY-LIST.PHP
    // -----------------------------------------------------------------------------
    // Family List page output
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full x-container" role="main">
         <div class="family-list">
          <?php wp_list_pages(“title_li=&post_type=member”); ?>
        </div>
      </div>
    
    <?php get_footer(); ?>

    Now you will get the container on your page like fullwidth template and you can also place your CSS by the selector .family-list if needed.

    Hope this helps.

    Cheers!

    #808759

    sschwab
    Participant

    Thanks for the reply. I tried adding the div’s before but anytime I try it, including your code, I get a 500 server error. I have copied your code exactly and get the 500 error.

    #808809

    sschwab
    Participant
    This reply has been marked as private.
    #808957

    Rupok
    Member

    Hi there,

    Thanks for updating. You didn’t provide the FTP host name so couldn’t check the code. However maybe the quotations are formatted as you are copy=pasting the code.
    Can you enable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', true);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page with the white screen, you should have some error output describing the issue in more detail.

    Meantime you can try re-typing the quotes (“) from the code.

    Hope this helps.

    Cheers!

    #808981

    sschwab
    Participant
    This reply has been marked as private.
    #809184

    sschwab
    Participant

    Got it figured out! It was a max width in customizer that was throwing me off.
    Mark it resolved and thank you for your support.

    #809354

    Jade
    Moderator

    You’re welcome. Glad to hear it’s sorted now.