jkovis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: query a fixed number of postsI haven’t worked with sticky posts that much, but it may be easiest to add a counter to make sure you show at most nine posts. Something like the following should work:
<?php if(have_posts()) : $post_counter = 1; while(have_posts()) : the_post(); if ( $post_counter < $ppp ) : ?> <!-- html to display the posts --> <?php endif; $post_counter++; endwhile; endif; ?>Forum: Fixing WordPress
In reply to: Moving a blogHi Wade, I’m saying try re-saving the permalinks on the spanish site (/wp-admin/options-permalink.php).
My suspicion is that the rewrite rules used the old subdomain URL so once WordPress generates new rewrite rules the links will start working again.
Forum: Fixing WordPress
In reply to: Replace image attribute with a class instead? (image uploader)I would like to be able to apply a class to each image I put in my posts– Are the default classes that WordPress provides not adequate enough? Are you trying to target CSS styles to post images?
– I took a quick look and couldn’t find anywhere to hook into the default image classes WordPress uses, though I guess you could filter the post content before it’s saved to the database.
Or maybe even add another option to type in a classname?– When using the visual editor if you hover over an image already in the post editor there is an image editor icon that appears. On the modal window that appears after clicking the icon there is an “Advanced Editor” that lets you add additional class names.
Forum: Fixing WordPress
In reply to: Moving a blogGo to /wp-admin/options-permalink.php and click “Save Changes” (WordPress will take care of the rest).
Forum: Fixing WordPress
In reply to: query a fixed number of postsAre you defining
$pppas equaling 9 somewhere?If not, I’d try setting it to 9 (
$ppp = 9;) or, from looking at WP_Query regarding sticky posts it looks like you can try using:$args=array( 'posts_per_page' => $ppp, 'meta_key' => '_thumbnail_id' 'post__not_in' => get_option( 'sticky_posts' ) );Forum: Fixing WordPress
In reply to: Moving a blogHave you tried flushing the rewrite rules by saving the permalinks on immfinancial.com/es (/wp-admin/options-permalink.php)?
Forum: Fixing WordPress
In reply to: get a single latest post.Use a WP_Query for each link.
Something like:
<?php $video_query_args = array( 'category_name' => 'videos', 'posts_per_page' => 1 ); $video_query = new WP_Query( $video_query_args ); if ( $video_query->have_posts() ) : while ( $video_query->have_posts() ) : $video_query->the_post(); ?> <span class="homeblueTitle"><a href="<?php the_permalink(); ?>">video</a></span> <?php endwhile; endif; wp_reset_postdata(); ?>Forum: Fixing WordPress
In reply to: DIfference in header on index.php and single.phpI’d try adding this code to the bottom of your theme’s style.css file:
#header #title { font-family: 'Bentham', arial, serif; }Forum: Fixing WordPress
In reply to: Adding 1 category as a main menu itemDoes your theme support WordPress menus?
Forum: Fixing WordPress
In reply to: Header image appearing on attachment pagesTry changing line 144 in your theme’s header.php from
if (!weaver_is_checked_page_opt('ttw-hide-header-image')) {to
if ( !weaver_is_checked_page_opt('ttw-hide-header-image') && !is_attachment() ) {Forum: Fixing WordPress
In reply to: Removing "Reply" on Posts in AtahualpaHave you checked off “Enable threaded (nested) comments # levels deep” on wp-admin/options-discussion.php?
Forum: Fixing WordPress
In reply to: How do I change the "website designed by _____" in WP?You’ll probably find the code in your theme’s footer.php file.
Forum: Fixing WordPress
In reply to: How to add new posts on the 2nd page?WordPress defaults to show the newest posts on the font page so you can try changing the post dates/times so they appear in the order you want .
Forum: Fixing WordPress
In reply to: wp-admin/index.php comes up with 404You disable the plugin by connecting via FTP and going to /wp-content/plugins and renaming the plugin folder.
Forum: Fixing WordPress
In reply to: new WP_Query and WHEREwhoops author !== post_author, good catch alchymyth