Tagged Questions
0
votes
2answers
33 views
Identify the page being shown while in The Loop
In my loop, I'm trying to set it so that certain text is displayed on certain pages, if there are no posts to display.
I thought this would be simple, using is_post(), but it seems that this function ...
0
votes
2answers
42 views
Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
I've spent a few days researching working with WP static pages - as separate from posts.
Although I've found useful guidance, I can't seem to find any good tutorials or worked examples that show me ...
-1
votes
0answers
28 views
Display Child Pages, title and excerpt on to homepage
I would like to do something like shown below, but don't know the proper code. I basically want to pull the title and excerpt of child pages and display it on the homepage. I want to be able to list ...
0
votes
1answer
47 views
Child Pages Loop
If anyone can help that'd be great.
I've found a snippet of code that I've used which is pretty much doing what I want it to do, which lists out subpages of the parent, adds a thumbnail if there is ...
0
votes
1answer
81 views
If Loop has odd number of posts on last page Custom style for last post in it
My loop displays posts in two columns using this php
<?php
if (have_posts()): while (have_posts()) : the_post();
$count++;
?>
<?php if ($count == 1) : ?>
<div ...
1
vote
1answer
35 views
Create a loop that gets pages with their template
I am trying to make a template that will be an html5/ vertical scrolling base.
I have created an amount of page templates that each would represent a <section> on index.php which mainly all it ...
0
votes
2answers
66 views
How to insert category list into post creation page, and retrieve chosen categories?
I would like to display the full list of categories on the Page creation page, so that the user can pick using checkboxes which category posts should appear on that page.
I then need to retrieve ...
2
votes
2answers
87 views
single page site with subpages
i want to make a single page site which has subpages with following structure
about us
team
-member1
-member2
contact
and i want the output to be like
<div class="about-us">
team content
...
-2
votes
2answers
237 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.
...
0
votes
1answer
94 views
Pagination for normal (standard) posts on a page with a custom loop?
probably a rather straight forward question.
my "homepage" is not the blog-page. I have a page-template named page-knowledge.php which has the following loop on it.
<?php
echo '<ul ...
0
votes
1answer
195 views
Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
Currently I am using <!--nextpage--> to split a post into multiple pages, but I would like to change from Pages: 1 2 3 4 to Next Page and Previous Page links similar to what you see on this ...
0
votes
2answers
69 views
Determine if ID is page or post and query the ID
I want to look up a page id and determine if it's a page or post. Then query that id and display stuff like title, featured image, etc.
This works for Pages:
query_posts('page=' . ...
4
votes
1answer
310 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,
...
0
votes
1answer
63 views
How do i create a list-posts-page?
I'm trying to create the actual "blog" page that lists all the posts. It seems like such a basic thing, but i can't find out how to do it.
Do i create a page and assign it a special template? If i do ...
0
votes
4answers
364 views
Multiple loops in same page, without duplicate content
I'm trying to make a page with multiple loops, I need every loop to display a predefined number of posts from the same category (every loop displays X number of posts from Category CATS). But I also ...
1
vote
2answers
57 views
Multiple loops are not reset
My lovely colleagues have once again designed something that gives me a hard time getting it in Wordpress. Surprisingly it's something that I have done multiple times before; having recent posts and ...
1
vote
0answers
161 views
Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
I've never posted here, but I'm tired of slapping code together. That said, I would be most appreciative if someone could help me with this.
I need a page template that:
outputs the PARENT PAGEs, ...
0
votes
1answer
44 views
posts going to 2 pages/categories only show up in 1
I have a portfolio website where my portfolio updates are supposed to go to both my portfolio and blog pages, as well as show thumbnails for the posts on my homepage.
The thumbnails work perfectly; ...
1
vote
1answer
84 views
Loop after page content
I just upgraded to 3.4.2 from 2.9 (i know, i know, but if it ain't broke...) I have page templates that are (or at least were) set up to display the page content first, then start a loop of posts, ...
0
votes
1answer
119 views
Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
Recently I had someone customize a WP blog for me. This person didn't do a very will job so I decided to do it myself. I customized my own blog page and it all works, except for when I click on the ...
0
votes
1answer
230 views
Get all pages to display at once
I'm doing a theme that is supposed to be ease to create, but I have now reached a standstill and need to get past this.
Is there a way to display/show all pages at once? Or can I create a custom ...
1
vote
3answers
667 views
Calling custom fields for pages (not posts)
I'm trying to place a small code in my template header.php file. I want to get a custom field value.
I'm trying to call custom fields from current page outside of loop, btw.
I have no problem doing ...
1
vote
3answers
415 views
posts page - different lengths of excerpt
is it possible to get wordpress on the posts page to do the following example.
the first three posts need to have a large image spanning the width of the title box and a longer excerpt.
the rest of ...
0
votes
1answer
255 views
Listing all posts from current category on page
I'm trying to list all posts from a certain category, in a list, on the category page that already lists the posts out in blog form. I'm trying to do it in the header area so that you can get an ...
0
votes
1answer
57 views
help with the loop. i have more posts than i want to fit on one page
I am working on using the wordpress loop to call posts from my wordpress blog into my website. i have my loop set up to grab the 10 most recent posts under the portfolio category and display them on ...
0
votes
2answers
77 views
Custom query does not find pages
I don't consider myself to be a newb, I've had a loop of all the pages work before, but right now one of my custom loops on my page template (which is used as the index page of the site), will not ...
1
vote
1answer
761 views
wp alchemy multiple image uploader output images to template
I am using wp alchemy to add a custom metabox to my site with multiple image uploader option. This part is working fine, but I have no Idea how to go about outputting the image links to my template. I ...
0
votes
2answers
468 views
Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
This is either something really simple that I've orchestrated into a complex problem or it really is a complex problem.
I've decided to use pages to display information. If I go to a page called ...
0
votes
1answer
269 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 ...
0
votes
2answers
714 views
Wordpress Query Posts From Category Post on Static Page
So I'm trying to query some posts from 1 category only and it does seem to be working. I tried get_post() also but no luck and after awhile I just caved and used query_posts (which is apparently bad ...
0
votes
2answers
220 views
Stepping through a foreach loop - adding +1 to the end of it so next time it loops it starts on item 2
I'm creating a custom Google map that plots multiple markers.
View the link as it will make it easier to explain what is happening and what I want
If you click on each marker it shows company names ...
0
votes
1answer
101 views
Static Website No Titles But Still Nav
So I have a static paged website and I want to make pages without title, but I still need the titles for the navigation to pick it up. How can I get rid of the Page.php (the_post()) from displaying ...
0
votes
1answer
617 views
Redirecting posts in Wordpress to a specific page
I created a page so that it would appear in my navigation menu. This page would however be my posts page (i.e. all posts would go here) and would also be my front page.
I am unable to find anything ...
4
votes
2answers
905 views
How to check if I'm on the last page of posts?
I want to display some text on the last page that isn't displayed on the other pages.
For example, on category pages: url.com/category/categoryname/page/6
or last page of all posts listed on the ...
0
votes
1answer
193 views
Differentiate between posts and pages in search results
How can one differentiate between posts and pages in search results?
What I need to do is show a the_time div for posts but not show it for pages, as it's irrelevant.
With a function? <?php if ...
1
vote
2answers
6k views
Get post by page name or slug
I know this is very avant-garde, but bear with me.
I've read that one is able to query a page by the page/post name or slug. I'm trying to do this because I need information from a page with a similar ...
1
vote
1answer
1k views
Using the Loop to show all levels of subpages under a parent page? Halfway there
I have a need to make the Loop run through all of the children of a parent, all of the children of each child, etc. The reason I need the Loop instead of a listing tag like wp_list_pages is so that I ...
0
votes
2answers
695 views
Include multiple page ids in loop
Haven’t slept in about 30 hours now, can someone please help as the below code doesn’t work, it just displays all posts etc :|
<?php $args = array
(
'page' => array(139, 54)
);
...
0
votes
1answer
2k views
WordPress: query pages except remove one page
I'm currently running this query to get pages (not posts) from the site section:
query_posts("post_type=page&post_parent=6");
I'd like to remove one page, 271, from this query. Based on this ...
1
vote
4answers
191 views
Dynamic Landing Page
I have a site with posts going back 5 years and I want to create a couple landing pages to highlight groups of posts. For example, I want to create a page about "blue widgets". The page should include ...
0
votes
3answers
1k views
How to get the list of posts in a static page other than front page?
So, for the thousands using WP as CMS, a typical approach is that of using the 'A Static Page' option from the Settings > Reading admin page.
However, I'm in a different scenario: our front page is ...
