measureyougive
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Page Load ErrorIt looks like a problem with your webhost: myhosting247.com
I tried going to https://www.fearthepeople.info/wp-admin and it redirected me to https://cweikert.myhosting247.com/wp-login.php?redirect_to=http%3A%2F%2Ffearthepeople.info%2Fwp-admin%2F
So I have no clue where your hosting service is redirecting normal page requests… You should submit a support request with them to fix this.
Forum: Fixing WordPress
In reply to: wp_list_pagesOkay, problem solved… to anyone else that wants to do this… you can’t quite do what I wanted because the list of subpages must be at the end of the parent page’s normal content.
Basically, I found the page.php template file, copied it as page_with_subpages.php and put this at the top of the file:
<?php /* Template Name: Page_With_Sub_Pages */ ?>
Then I put this code immediately following the line with “the_content();”
<ul> <?php wp_list_pages('title_li=&child_of='.$post->ID); ?> </ul>
When you next edit a parent page that you want to list sub-pages of this parent, you can select this custom template as that page’s default template.
Forum: Fixing WordPress
In reply to: wp_list_pagesunfortunately, I don’t want these sub-pages listed globally in a widget… (from my understanding, widgets get put in the sidebar, which is loaded on every page).
I would like the list of sub-pages to appear in-line on their parent page.
For example, imagine that I have a page called “Camping” that will be the parent page, and many subpages about specific camping trips that I have gone on.
I put a brief paragraph on the parent page that I love camping and will list each of my camping trips below. And then I want to use the functionality of wp_list_pages to list all of the subpages so that people can reference this as a running list of all my camping trips, and they should be able to click the title of each listed page to be directed to a subpage with details about that particular trip.
I understand that this is apparently a complicated thing that wordpress isn’t designed to do… at least not out of the box. I am reading about page templates and hope to be able to create a custom template that will do this…
Forum: Fixing WordPress
In reply to: wp_list_pagesah, hehe, hence the name “template tag”
so how might I accomplish this? If I create a bunch of pages that are sub pages of another page. is there an easy way to automatically create a list of these sub-pages within the parent page?