Turante / sandbox-theme

Automatically exported from code.google.com/p/sandbox-theme
0 stars 0 forks source link

Search page in 2.5 #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Search in 2.5 covers pages. Search.php displays a comments link for each
result—including pages that don't have comments.

Original issue reported on code.google.com by idstewar...@gmail.com on 13 Apr 2008 at 1:02

GoogleCodeExporter commented 9 years ago
Why yes, you're correct. Obviously this can be taken care of with 

body.search div.page span.comments-link { display: none; }

But that's hardly a long-term solution. Will look in to this.

Original comment by swall...@gmail.com on 14 Apr 2008 at 1:18

GoogleCodeExporter commented 9 years ago
The same problem occurs with categories for pages in search results, defaulting 
to
'Uncategorized'. 

Original comment by swall...@gmail.com on 14 Apr 2008 at 4:37

GoogleCodeExporter commented 9 years ago
<?php if ( get_post_custom_values('comments') ) { ?>
<!-- page-meta -->
<?php } ?>

?

Original comment by idstewar...@gmail.com on 14 Apr 2008 at 5:05

GoogleCodeExporter commented 9 years ago
More like

<?php if ( !is_page() ) { ?>
<!-- entry meta -- >
<?php } ?>

Since we're not displaying any entry meta with pages to begin with, probably 
best to
remove it from search results as well.

Original comment by swall...@gmail.com on 14 Apr 2008 at 6:02

GoogleCodeExporter commented 9 years ago
Thanks, Ian. Fixed at rev 256.

Original comment by swall...@gmail.com on 16 Apr 2008 at 1:24