- This topic is empty.
-
AuthorPosts
-
September 3, 2009 at 9:46 pm #25992brianfeisterMember
So I’ve copied a previously designed custom theme and am skinning it for a new project. When I click a post permalink, I get "Sorry, no posts matched your criteria".
I thought that possibly this was because permalinks were bad so I updated them just to be sure.
I’ve also updated my .htaccess file just to be sure the correct WordPress mods were in there.
So what it seems is that somewhere in my code, there is a broken element, because when I switch to the default theme everything is fine. The strange thing is that when I copy and paste the contents of the default "single.php" I still have the same error (and layout bugs show that I’m looking at a the fresh non-cached single.php)… Not sure why it still won’t display the loop when I copy the default single.php, that’s baffling.
My code is below… any help?
Code:ID, ‘thumbnail’, $single = true);
// check for thumbnail class
$thumb_class = get_post_meta($post->ID, ‘thumbnail class’, $single = true);
// check for thumbnail alt text
$thumb_alt = get_post_meta($post->ID, ‘thumbnail alt’, $single = true);?>
”
alt=””
/>‘
Pages: ‘, ‘after’ => ‘
‘, ‘next_or_number’ => ‘number’)); ?>
Was it good? If so, tell the world:
-
Twitter.com – Tweet This! -
&h=“>
Facebook
Facebook.com – Post on Facebook -
&title=“>
Stumble Upon
Stumble Upon.com – Stumble This! -
&title=“>
Digg
Digg.com – Digg It! -
&title=“>
Delicious
Del.icio.us – Add to Delicious -
&title=“>
Reddit
Reddit.com – Add to Reddit -
“>
Technorati
Technorati.com – Add to Technorati -
&h=“>
Newsvine
Newsvine.com – Add to Newsvine -
&title=“>
Design Float
Design Float.com – Float It!
This entry was posted on and is filed under . You can follow responses to this entry through this post’s feed.
comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can leave a response, or ” rel=”trackback”>trackback from your own site.comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can ” rel=”trackback”>trackback from your own site.comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.‘) ?>
Sorry, no posts matched your criteria.
-
Resolved. Was calling the_loop multiple times, which caused the second call to fail :(
That’s what I get for forgetting to hit submit… Glad you figured it out.
Here’s the entry relating to wpg2…
Array
(
[type] => DEBUG
[date] => 2008-05-20 15:29:46
[source] => /home/davidedw/public_html/blog/wp-content/plugins/wpg2/wpg2.php
[file_line] => 114
[user_id] => 0
[ip_address] => 122.107.253.249
[event_id] => 9741
[event_no] => 8
[description] => Undefined index: wpg2_enablelightbox
[trace] => Backtrace is not supported in PHP4, please upgrade to PHP5.
)
- The forum ‘Back End’ is closed to new topics and replies.