-
AuthorPosts
-
February 22, 2016 at 10:58 pm #807933
sschwab
ParticipantI 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 #808099Christopher
ModeratorThanks 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 #808718Rupok
MemberHi 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 #808759sschwab
ParticipantThanks 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 #808809sschwab
ParticipantThis reply has been marked as private.February 23, 2016 at 11:50 am #808957Rupok
MemberHi 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 #808981sschwab
ParticipantThis reply has been marked as private.February 23, 2016 at 2:53 pm #809184sschwab
ParticipantGot 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 #809354Jade
ModeratorYou’re welcome. Glad to hear it’s sorted now.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-807933 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>