jkovis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Search results listed randomlyHaven’t tested this, but it should work. Open your theme’s search.php or index.php (if there is no search.php), find the
if(have_posts()part and place the following above it:<?php if(is_search()) { query_posts('orderby=rand'); } // continue with the rest of the template... if( have_posts() ) : while ( have_posts() ) : the_post(); ?>If there is a search.php then you don’t need the
if(is_search()) {and}parts, but it won’t hurtForum: Fixing WordPress
In reply to: How to increase sidebar width in twentyten?Open the theme’s style.css file and change the following width value:
#primary, #secondary { float: right; overflow: hidden; width: 220px; }Since it’s a fixed width design you’ll probably need to change the margin and width of the main content area as well.
Forum: Fixing WordPress
In reply to: How to paste Word text AND images?Will clicking on the Word paste button insert both text and images?sorry, it just strips all formatting, leaving only text. You will need to use the editor to re-format the text and upload the images.
It would be interesting to see some benchmarking of different variations, but my gut reaction says that
/%post_id%/%postname%.htmlwould be the best betForum: Fixing WordPress
In reply to: How to add custom input fields to a new Custom Post Type?And here is another good blog post/tutorial.
Forum: Fixing WordPress
In reply to: How to avoid stretching large images in a postThe thumbnails (featured image) keep the original height but squeeze the width of the image to fit the width of the post.— featured images are usually handled outside the post content so I think it might be a similar, but different issue. can you post a link where this is happening?
Forum: Fixing WordPress
In reply to: Running Xammp on local works, uploaded only text displayedIt looks like your WordPress address is still pointing to http://localhost/wordpress…go to wp-admin/options-general.php and change it to http://keyframehq.com
Forum: Fixing WordPress
In reply to: See only the title and opening lines of my postsOpen your theme template files (home.php, index.php, archive.php, category.php — all of these might not exist, which is fine) one by one, replace the_content(); with the_excerpt();, save and reload the page to see if it made the change that you wanted.
Forum: Fixing WordPress
In reply to: How to avoid stretching large images in a postWhen I upload an image larger than 750, the width is resized to 750 but the height is not and it gets squished. The aspect ratio is no longer correct.– can you post a link where this is happening?
I'd like for my images to be resized automatically. Is this possible?– Have you set your image dimensions at wp-admin/options-media.php? WP will automatically resize uploaded images to the ‘thumbnail’, ‘medium’, and ‘large’ sizes set on that page.
Forum: Fixing WordPress
In reply to: How to add custom input fields to a new Custom Post Type?How can I get rid of these and only include my own specified boxes?You’re going to need to use the add_meta_box() function to create new meta boxes for the custom post type edit form.
I came across this blog post which explains how to do so, but haven’t tried it.
Forum: Fixing WordPress
In reply to: Preventing get_permalink from loading the postBecause I passed it an ID?— so if you know that the post id will return a post then why not just hard code the link (
<?php bloginfo('url'); ?>/?p=$ID) instead of calling get_permalink()?So this isn't support as the forum title suggests?— It is, but after reading your other questions it seemed like you were investigating the design decisions behind how WP queries the database (‘More superfluous database access’)…and for that I’d recommend the WP-hackers list since your more apt to hear back from the core developers who made those design decisions
Forum: Fixing WordPress
In reply to: custom post typesdoh…I can’t believe I didn’t even think of checking the $post object…good thinking 😉
Forum: Fixing WordPress
In reply to: Two Home Pages?Your welcome, glad it you were able to fix it.
As for the other issue, do you have any caching plugins (like WP Super Cache) installed?
If not, it could potentially be some kind of php/server level cache installed by your host.
Forum: Fixing WordPress
In reply to: Infintely Requesting itselfSince it’s a shared server you’ll probably need to ask your hosting provider for the pertinent logs.
Forum: Fixing WordPress
In reply to: custom post typesI don’t know if this is the best practice, but it looks like you can just check the $_GET array on admin_init for ‘post_type’ and then remove the media_buttons actions as needed:
add_action('admin_init', 'removemediabuttons'); function removemediabuttons() { if(isset($_GET['post_type']) && $_GET['post_type'] == 'products') { remove_action( 'media_buttons', 'media_buttons' ); } }