All Questions
9 questions
0
votes
1
answer
18
views
Custom theme on multisite has issues with standard loop output
I am experiencing the following error output when using the standard loop on page.php and single.php on a multisite-based WordPress installation. The loops are the same for both template types, with ...
0
votes
1
answer
249
views
Display page content in different sections - based on page break block?
Is there a way to loop through page content, and display the content that is above page break in one section, and everything that is below the page break in another? Or additionally, a way to generate ...
0
votes
0
answers
506
views
Get current_post in reverse order with pagination
I'm trying to index my posts (in reverse) and I'm using current_count within loop to do this. This is my code:
<?php
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args ...
0
votes
1
answer
1k
views
Display child page content of a specific parent on home page
This has been bugging the hell out of me, it should be so simple!
I have a list of child pages under the parent called 'Our Homes'. The sitemap structure is as follows:
Home
Our Homes
home 1
home ...
0
votes
1
answer
2k
views
List all anchor links on a page
I was trying to make a navigation menu of all the anchor links on a page (similar to wikipedia) but couldn't find out how. I tried to find a plugin that could do it, but they only listed the anchors ...
-1
votes
1
answer
157
views
How to handle parent and child pages?
I want to list episodes of a series I am making of instructional videos with content.
The patent page "series" will list episodes weekly. Ie: episodes 1, 2, etc.
I'm thinking to setup a template to ...
-2
votes
2
answers
3k
views
How do I remove blog entries from home page Twenty Eleven child theme?
I have been wrestling with this for some time. I've read the documentation about creating a separate home page and posts page, and so on, and I have managed to create a landing page, and a blog.
...
26
votes
2
answers
31k
views
Getting only direct child pages in WordPress with get_pages
I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas?
PHP Source:
$args = array(
'child_of' => $post->ID,
'...
1
vote
1
answer
2k
views
How to hide all child pages with post_query?
i have a page template as start page(home.php). i use a 2 columns grid to display all pages on that home.php with title and excerpt. unfortunately also my child pages are shown and i can't figure out ...