Tagged Questions
0
votes
2answers
55 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 ...
0
votes
0answers
97 views
Dynamic Dropdown populated with Categories from current page?
I have a page where it lists the category name with it's posts under. On this page it only lists the posts that are also in another custom taxonomy. To do so I am using this code which works fine --
...
0
votes
0answers
28 views
Same Loop on Multiple Pages
I have my main loop (loop-entry.php) pulling to my index page which is my homepage on this site: http://snippetmagazine.com/ when I tried to copy that loop and create (loop-blog.php) and included it ...
0
votes
1answer
55 views
How to display posts on a static page? (like search loop)
How do I display the loop inside a static page? Like the loop when I use the search (which in this theme it's actually working) or on index.php
An example for what I'm saying can be seen here: ...
0
votes
1answer
33 views
Loop not showing up on page template
I have a page template and on the page I have a loop such as:
query_posts('post_type=post&posts_per_page=5&paged='.get_query_var('paged'));
if(have_posts()){
while(have_posts()){
...
1
vote
1answer
39 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 ...
2
votes
2answers
82 views
Do I need to use The Loop on pages?
I'm writing my first WordPress theme and have a question about the use of The Loop in page templates. The page templates I've looked at all follow basically the same pattern (example from Twenty ...
0
votes
1answer
130 views
How to Loop and add Specific Categories and Products Images into Specific Page Template?
Thanks to Rafael Marques I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
0
votes
2answers
140 views
Display all posts from specific categories on a page
I want to display all posts from specific categories on a single page.
Therefore I edited the page.php file in my theme folder.
I added an 'if-clause' to check which page currently being displayed and ...
4
votes
1answer
468 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
141 views
Problem with different query loops (and “main loop”) on category template page!
so, heres the problem:
i've created a category-template (category.php) with two query loops and the main loop (in which the content from the category should get looped in). if i now click on a ...
1
vote
2answers
60 views
Page-loop is looping content from custom loops on the same site. How to avoid that?
i've made a custom home-page (with a template) and i'm using three loops on this site: two category-loops and on the bottom of the site the main loop for the page (the page content). the problem is: ...
0
votes
1answer
45 views
Tables not showing divs and loop/php items
I know this is an absurd questions, as who uses tables anymore? I got handed this and just need to make it work really. I don't know anything about tables so it's been a learning experience.
I ...
0
votes
1answer
374 views
Add custom PHP and HTML to the_content()
I am developing a wordpress website on the thematic framework.
In my child theme i have made a full width page template called resources.php
In this page template i have written custom php code which ...
-2
votes
1answer
456 views
Display all posts in a page code for template
I have found some code to display all posts in a page but it's not exactly what I need.
What I need to do is for example:
<h1>This is the Title</h1>
<p>This is the content of the ...
0
votes
2answers
318 views
How to modify the Loop from a plugin (instead of a theme)
I am building a plugin which sets up a custom post type with some meta information.
I'd like that information to show up in the loop (in particular the one on the main page).
How can I modify the ...
1
vote
1answer
407 views
Running a loop with a custom query string on a custom page template
I made a custom page with a template that is just a loop with custom query string for a list of posts from a specific category but when I view the page it only shows one post with the title being the ...
0
votes
1answer
68 views
Page (template) with only news of the type “gallery”
Could anyone explain to me how to create a picture galleries page, using the built in Wordpress galleries (no plugins if possible)?
Basically, I would like to create a page (template?) in which I ...
0
votes
1answer
285 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 ...
-1
votes
1answer
187 views
Custom Page Template and Category Exclusion
I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
1
vote
1answer
165 views
Adding general page content to page templates
If I'm creating a page template, let's say for example one for a testimonials custom post type I've created, I think I have it figured out that if I do the following in page-testimonials.php:
...
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 ...
1
vote
1answer
189 views
Easiest way to show total number of subpages
I am making a portfolio site where each portfolio entry is a subpage of "Work". In my template, I am trying to say something like: worked on 15 projects and counting, where 15 is the total number of ...
1
vote
1answer
177 views
using the loop with a custom table
I have a table in my WordPress db called wp_featuredposts. How can I make a query to output the posts in that table into the loop on a custom wordpress page template?
2
votes
1answer
377 views
Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
What I want to do is a loop like this is something like this I'm really sorry but its hard to format here!
I going to put this short url http://pastebin.com/dEdKzgJz so you can see it better... Can ...
0
votes
2answers
291 views
Displaying page image in the footer automatically
I've got the following problem:
each page of the site has its own image which needs to be placed within the footer div for correct, static placement. However each image is different so I can't just ...
3
votes
4answers
1k views
How can I create an alternative home page?
I'm working on a site which has a fully customized front page. Now I'm asked to add a more classic looking blog type page which will be reacheable at http://domain/blog.
I tried creating a custom ...