rhonorginal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: display random posts on index.php instead of latest@alchymyth many may thanks, that works like a peach, and I can understand why.
@robin I appreciate your time and tying to help, but you also did this to me yesterday, had me going round in circles. I appreciate you are trying to help, but would rather have no reply than some random code.
thanks all.
Forum: Plugins
In reply to: override pagination in search resultsthanks dude, that worked a peach
Forum: Fixing WordPress
In reply to: display random posts on index.php instead of latestwould that not just display a list of 5 random post titles?
Forum: Fixing WordPress
In reply to: display random posts on index.php instead of latestis_home(); $query = new WP_Query( array ( 'orderby' => 'rand', 'posts_per_page' => '1' ) );in functions.php doesn’t seem to do anything?
Forum: Fixing WordPress
In reply to: override pagination in search results (would be better to use something like this? how could this be applied to show all search results on one page regardless of reading settings?
<?php function custom_posts_per_page( $query ) { if ( $query->is_tax('mytaxonomy') || $query->is_category('mycategory') ) { set_query_var('posts_per_page', 9); } } add_action( 'pre_get_posts', 'custom_posts_per_page' ); ?>Forum: Fixing WordPress
In reply to: display random posts on index.php instead of latesti’m not sure how that fits into what i’ve already got:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article"> <section class="post-content clearfix"> <?php the_content(); ?> </section>Forum: Fixing WordPress
In reply to: I'm Chinese, who can help mepost the question in chinese? must be someone who could help.
Forum: Fixing WordPress
In reply to: how do i change the address of a webpagedo you really want your email address displayed as a username?
Forum: Fixing WordPress
In reply to: using jquery for post navigation with keyboardsorry, above example works, I omitted the final semi
Forum: Fixing WordPress
In reply to: Conditional page title for home verses otheryes, solved my own problem again….
sorry chandanonline4u, your code doesn’t work
use a plugin… what are you on?Forum: Fixing WordPress
In reply to: Conditional page title for home verses otherI’m thinking something more like
<title><?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) ); ?></title>Forum: Fixing WordPress
In reply to: Conditional page title for home verses other?
Forum: Fixing WordPress
In reply to: Footer wordress 2010?childs are bloat for no reason. lazy.
Forum: Fixing WordPress
In reply to: Conditional page title for home verses otherI did try it. It pus the post title into the html before the <title>
Forum: Fixing WordPress
In reply to: Conditional page title for home verses otherwould that not drop in the post title before <title>?