latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

How Do I Display Subpages?

Home Forums Community Forum How Do I Display Subpages?

This topic contains 5 replies, has 2 voices. Last updated by  Jinger Jarrett 4 years, 2 months ago.

Topic Author Topic
Posted: Thursday Oct 18th, 2012 at 12:56 pm #28863

I am finding that I am having to create links to all my subpages instead of using a plugin to display them. As my site grows, this is getting more difficult because it’s harder to find the page I want to link to. I would like to be able to have the sub pages show up automatically, but all my attempts to make this happen have failed.

I installed the page-list plugin and tried using the short code, but it doesn’t work. I changed the theme, disabled all my plugins except for S2 Member, and it still doesn’t work.

Is there an easier way to display sub pages without having to create the link to each page yourself?

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Thursday Oct 18th, 2012 at 6:41 pm #28937
Raam Dev
Username: Raam
Staff Member

You should be able to use the WordPress wp_list_pages() function for this (docs here). To use PHP code inside a WordPress page/post, you’ll need to use the Exec-PHP Plugin.

Posted: Thursday Oct 18th, 2012 at 8:33 pm #28949

Thank you. That helps a lot. I already use that plugin because I am using the drip feed content function. Love that.

This is such an awesome plugin, but I feel so unworthy! LOL. You really should write a book on how to maximize it. I would buy it. :)

Posted: Thursday Oct 18th, 2012 at 9:25 pm #28954

I hope this is OK. What I wanted to do was simply display the children for that page. I couldn’t find a snippet that didn’t display all the pages, or at least I couldn’t figure it out.

Anyway, I found a snippet that would display only the children for that page. Here is the link:

http://snipplr.com/view/45102/

I simply pasted the code into the page I wanted to use it in. Thanks so much for your help. I hope this helps someone else. :)

Posted: Friday Oct 19th, 2012 at 8:04 pm #29082
Raam Dev
Username: Raam
Staff Member

I’m happy to hear you figured it out, Jinger, and thank you very much for sharing the code snippet! :)

Awarded Jinger the Helpful badge.
Posted: Friday Oct 19th, 2012 at 9:03 pm #29087

My pleasure. All of you have helped me so much. Least I can do is return the favor!

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.