meshdesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sticky Posts!! I'm having a nightmare!yeah i knew it would need tinkering with i was just expecting it to be a little bit easier than this as it sounds like a relatively simple thing to do!
at the moment i am using the following code:
<?php if(have_posts()) : ?> <?php $odd_or_even = 'odd'; ?> <?php $recentPosts = new WP_Query(); $recentPosts->query('cat=3&showposts=5'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=3&paged=$paged"); /*query_posts(array('post__in'=>get_option('sticky_posts')));*/ while (have_posts()) : the_post(); ?> <?php $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?> rest of loop
so i am not sure how i could integrate you’re code into that.. it seems i am going to need a loop to display only sticky posts then a loop to display no sticky posts all the while keeping the even and odd switch working??
Forum: Fixing WordPress
In reply to: Custom Post Types to Custom single.phplove the use of the word automagically, not sure if it was a typo but it works!
i’ll give it a whirl and let you know how i get on with it!
Forum: Fixing WordPress
In reply to: Add Thumbnail to the Column Overviewmy fault.. i hadnt realised i had spelt the case of thumbnail wrong.. for anybody else wishing to solve it
add_filter("manage_edit-product_columns", "prod_edit_columns"); add_action("manage_posts_custom_column", "prod_custom_columns"); function prod_edit_columns($columns){ $columns = array( "cb" => "<input type=\"checkbox\" />", "title" => "Product Title", "description" => "Description", "thumbnail" => "Thumbnail", ); return $columns; } function prod_custom_columns($column){ global $post; switch ($column) { case "description": the_excerpt(); break; case "thumbnail": echo the_post_thumbnail('small-post-thumbnail'); break; } }
i have declared small-post-thumbnail with a width and height in earlier code.
Forum: Fixing WordPress
In reply to: Archives – Show Results of Different News Feedsi think that could have been perfect except i’m not using the widget sidebar i am building it through php.
Forum: Fixing WordPress
In reply to: trying to get post Title below Image and above Contentstill not managed to sort this one out.
if anybody can help me would be much appreciated
thanks
danForum: Fixing WordPress
In reply to: trying to get post Title below Image and above Contentsorry, yes the image is in the post, so i presume it is in the content.
my site this is what i am currently working on so you can have a better idea.
thanks
Forum: Installing WordPress
In reply to: Problem Transferring Site Online (sql)i managed to sort it, it was a basic problem in a seperate page to what i was looking, the link you gave me helped me solve it.
thanks a lotdan
Forum: Installing WordPress
In reply to: Problem Transferring Site Online (sql)this is the second time ive done it as i suspected something like that may have happened. and I am using ASCII.
Forum: Fixing WordPress
In reply to: get specific tag to showi sorted it, for anybody that is trying to do something similar
i used the following code:<?php $posts = get_posts( "tag=inspired&numberposts=1" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <?php images('1', '170', '', '', true); ?> <?php endforeach; ?> <?php endif; ?>
with this plugin
https://www.ads-software.com/extend/plugins/simple-image-grabber/
Forum: Installing WordPress
In reply to: Is WordPress right for me?that seems fine, and i will probably do that method, just wondering if there is a way for a menu item to show when the client logs in, similar to a my account sort of page?
dan
Forum: Installing WordPress
In reply to: Is WordPress right for me?ok, is there a redirect module to use with that, so i could have a menu link with Client Page, and then give them a code, which re-directs them to the password protected page?
Dan