-
AuthorPosts
-
February 22, 2016 at 10:58 pm #807933
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(); ?>
February 23, 2016 at 1:34 am #808099Thanks 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.
February 23, 2016 at 8:45 am #808643February 23, 2016 at 9:48 am #808718Hi 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!
February 23, 2016 at 10:10 am #808759Thanks 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.
February 23, 2016 at 10:27 am #808809This reply has been marked as private.February 23, 2016 at 11:50 am #808957Hi 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 openingwp-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!
February 23, 2016 at 12:04 pm #808981This reply has been marked as private.February 23, 2016 at 2:53 pm #809184Got it figured out! It was a max width in customizer that was throwing me off.
Mark it resolved and thank you for your support.February 23, 2016 at 5:17 pm #809354You’re welcome. Glad to hear it’s sorted now.
-
AuthorPosts