mr orange
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show the Post NumberI am using the numbering system for my custom post loop (for a portfolio loop). Is there a ay to add the numbers to just that loop using custom post types?
I can’t get the numbers to show up. I made a new post and still nothing. The only way the number shows up is if I manually add in a custom field for ‘incr_number’.
Here is a look at my code:
<?php include ('header-portfolio.php'); ?><?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }$myposts = array(
'post_type' => 'portfolio',
'posts_per_page' => '10',
'orderby' => 'id',
'order' => 'ASC',
'paged'=> $paged
);
query_posts($myposts);
?>
<?php posts_nav_link(' · ', 'previous page', 'next page'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="thumbwrapper"><div class="portfolio_post">
<h2><a
title="<?php the_title(); ?>"
href="<?php the_permalink() ?>"
rel="bookmark"><?php the_title(); ?><span><?php printf("%02d", get_post_meta($post->ID,'incr_number',true));?></span></h2>
<div class="portfolio_thumb"><?php the_post_thumbnail(); ?>
</div>
</div>
</div>
<?php endwhile; endif; ?><div class="nav-previous"><?php next_posts_link( __( '« Older' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer »' ) ); ?></div><?php wp_reset_query(); ?>
Forum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopI figured it out. Thanks for all of your help guys. I added the non-conditional next_post_link tag in my single-footer.php and the code from above. Viola!
Forum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopYes, I have all of that correct. Perhaps I need to upload my files. It is on a local host on my computer
Forum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopThank you for all of your help!
Ok, this time there was no blank screen, it just didn’t seem to prompt the next and previous links to show up. It also did not work on the portfolio-single.php file when clicked on a link.
So sorry for all of the trouble, is there something else I can do? Should I upload my files or something?
Thanks.
_
PatrickForum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopThanks again!
When I paste that into my portfolio.php file, the portfolio page does not load (white screen). Not sure how to amend whatever might be wrong with it.
I used this tutorial to make my custom post template:
https://www.astronautdesigns.com/2010/06/wordpress-3-custom-post-types/
The author told me to add the following but that did not work:
<div class="posts-nav-links"> <li class="previous"><?php previous_post(‘%’,'« Previous’, ‘no’); ?></li> | <li class="back"><a href="/portfolio">Back to Portfolio</a></li> | <li class="next"><?php next_post(‘%’,'Next »’, ‘no’); ?></li> </div>
Forum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopThanks alchymyth for the info, that is some good info but sadly that did not seem to work either (I’m not sure I implemented that correctly from his code though, but I couldn’t get it to work).
I am so tired of this that I would be willing to pay someone to find me a fix.
_
My main desire is to have pagination on the custom-single.php file (the full portfolio post itself to link to next and previous posts)Forum: Fixing WordPress
In reply to: Pagination and a Custom Post LoopThanks for the info kees,
I have tried that, it still doesn’t seem to work.
Do you know anything else I might be missing?
All that I want is that when you are in a full post that you can have navigation links for ‘next post’ and ‘previous post’ using the php:
`next_posts_link(__(‘Older’));previous_posts_link(__(‘Newer’));`
Forum: Fixing WordPress
In reply to: Warning when I put local theme to my live blogAny advice?
Anyone have any suggestions at least?
Forum: Fixing WordPress
In reply to: Hash navigation will not work with wordcyclethis might be the wrong place to ask this, but I was unsure.
Forum: Fixing WordPress
In reply to: Jquery menu will not work only in WordPressAwesome!! Thanks that worked great!
Anyway you know how to make the subpages stay open when navigating around? Instead of the parent page closing every time you go to another page?
You are a lifesaver. seriously
Forum: Fixing WordPress
In reply to: Jquery menu will not work only in WordPressanyone have any more advice?
Forum: Fixing WordPress
In reply to: Jquery menu will not work only in WordPressthanks joe, I thought that might be the case but it seems that one didn’t fix it either.
Forum: Fixing WordPress
In reply to: Jquery menu will not work only in WordPressI have been trying to get this to work for approx 6 hours or frustration. Ergh..
Thanks for the links, I have tried several things and can’t get it to work. Any specific help would be more than appreciated!
Thanks!!
Forum: Fixing WordPress
In reply to: Jquery menu will not work only in WordPresshere is the static html with the menu bar working…
Just need it to wok with wordpress…
I added the call for the pages in sidebar.php inside of <li tags, but the functionality will not work. I think it is something to do with java or jquery overriding =with wordpress