Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Blogging Forum


You are currently viewing our Blogging Forum as a guest. Please register to participate.
Login



Reply
problem with single.php
Old 01-05-2011, 09:13 PM problem with single.php
NoeG's Avatar
Experienced Talker

Posts: 45
Name: Noe Garcia
Location: The great state of TEXAS we'll kick yer ***!
Trades: 0
I think my single page is jacked up I'm testing a theme I made to change my site and when I click the posts link to go to the single post nothing shows and it looks like it the title says page not found

<?php get_header(); ?>
Code:
        <div id="content">
                <?php query_posts($query_string . '&cat=-3'); ?>
                <?php if(have_posts()):?>
                    <?php while(have_posts()):the_post();?>
        <!-- loop starts// contains the loop-->
            <div class="date-info">
                <div class="date"><?php the_time('d'); ?></div>
                <div class="day"><?php the_time('M'); ?></div>

            </div>

            <div class="post-info">
                <div class="post-title">
                    <h2 class="post-title"><a href="<?php the_permalink();?>"title="<?php the_title();?>"><?php the_title();?></a></h2>
                </div>

                <div class="post-meta">
                    Posted By <?php the_author();?> / In <?php the_category(',')?> / With <?php comments_popup_link('No Comments','1 Comments','% Comments');?>
                </div>

                <div class="post">
                    <?php the_content();?>
                        <?wp_link_pages();?>
                            <?php edit_post_link('Edit','<p>','</p>');?>
                                <h3>Was this post helpful?</h3>Get Updates, subscribe to the <img src="/wp-content/themes/templafied/images/smallrss.png" />RSS Feed<br /><br />

                                <h3>Please bookmark and share</h3>
                                    <ul>
                                        <li><a href=”http://stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>”><img src="/wp-content/themes/templafied/images/stumbleupon.png" alt="stumble" /></a></li>
                                        <li><a href="http://digg.com/submit?phase=2&url= <?php the_permalink();?>&title=<?php the_title();?>"><img src="/wp-content/themes/templafied/images/digg.png" alt="digg" /></a></li>
                                        <li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title();?>"><img src="/wp-content/themes/templafied/images/delicious.png" alt="delicious" /></a>

                                    </ul>
                </div>        

            </div>
        <!--Loop Ends -->
        <?php endwhile;?>
            <?php endif;?>
    </div>

        <?php get_sidebar(); ?>    

        <?php get_footer(); ?>
is something wrong with my single.php file?

http://www.templafied.com

if you click one of the posts in the loop or in the sidebar nothing shows up
__________________

Please login or register to view this content. Registration is FREE
|personal portfolio and blog

Last edited by NoeG; 01-05-2011 at 09:14 PM.. Reason: added a link
NoeG is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2011, 07:44 PM Re: problem with single.php
NoeG's Avatar
Experienced Talker

Posts: 45
Name: Noe Garcia
Location: The great state of TEXAS we'll kick yer ***!
Trades: 0
is this anything anyone can help with? the site is live and I cant figure out whats wrong with it? now the links direct to the 404 template so I'm wondering if its something to do with the permalink?
__________________

Please login or register to view this content. Registration is FREE
|personal portfolio and blog
NoeG is offline
Reply With Quote
View Public Profile
 
Old 01-06-2011, 07:56 PM Re: problem with single.php
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,362
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
more likely a rewrite error.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-23-2011, 12:29 AM Re: problem with single.php
RonnieTheDodger's Avatar
Extreme Talker

Posts: 232
Location: Central USA
Trades: 0
If this is single.php, I am not sure what this is doing at the top.

Code:
<?php query_posts($query_string . '&cat=-3'); ?>
Technically, that would change your query and alter the loop which should already be set.

Try commenting that out like this and see if your post/page will show

Code:
<?php // query_posts($query_string . '&cat=-3'); ?>
__________________
Ronnie T. Dodger

[
Please login or register to view this content. Registration is FREE
] [
Please login or register to view this content. Registration is FREE
]
RonnieTheDodger is offline
Reply With Quote
View Public Profile Visit RonnieTheDodger's homepage!
 
Reply     « Reply to problem with single.php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.08821 seconds with 12 queries