chadrew
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Page breakes down since 1.1You can add
define('WP_DEBUG', true);to your wp-config.php, and then see what error your site gives you.Forum: Plugins
In reply to: [Plugin: WP Smush.it] Question about timingI see Kraken has an API, it would be sweet if someone made a WP plugin for it, too.
Forum: Fixing WordPress
In reply to: Two blogs – one chronological, the other reverse?You can create a custom post type called “stories” in order to separate it from other posts.
http://codex.wordpress.org/Post_Types
Reversing the sorting by date should be easy enough using
query_posts. You just add<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>beforehave_posts()in your index.php (or if you’re working only with story custom posts, I guess archive-story.php or something).Using custom posts this way would result in yoursite.com being the regular “blog”, yoursite.com/stories/ being the “index” of stories, and yoursite.com/stories/whatever being a single story page.
Forum: Fixing WordPress
In reply to: Order of titles on main page and other stuffAn easy way would be adding
<!--more-->in your posts after a few paragraphs, this way only the part before<!--more-->will be displayed on the home page.Alternatively, you can achieve the same results by editing the index.php of your theme, but that requires some WP knowledge (replacing
the_contentwiththe_excerptand things like that).Regarding showing older posts at the top, once again you could edit the index.php in your theme and add
<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>right before the line which hashave_posts().Very interesting, I guess you could use
'public' => falseand'exclude_from_search' => false, but I’m not sure if one prevents the other from working.'public' => true
'exclude_from_search' => trueThis way custom posts should be accessible, but won’t be included in search.
“Search” refers to WordPress internal search only. If you want to hide a specific post type from search engines (e.g. Google), you have to add a condition to your header.php, like this:
<?php if ( get_post_type() == 'custompost' ) { ?> <meta name="robots" content="noindex,follow" /> <?php } ?>I hope I understand your question correctly because in the first post you ask how to make pages inaccessible but visible in search, and in the last post it’s the other way round 🙂
Forum: Fixing WordPress
In reply to: How do I create more than one page area?So you want to add another widget area to your theme. First of all, you register another widget area in functions.php using
register_sidebar. Then you usedynamic_sidebar(name)where you want the new area to appear.More info:
http://wordpress.org/support/topic/how-to-create-new-widget-area
http://codex.wordpress.org/Widgetizing_ThemesForum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin 3.4.2] Adding thumbnail to widget@bvanleeuwen you can check “Display using a custom template file” in the widget options, and select the custom template you want to use.
@ottens this is more of a PHP quesiton than WordPress. But basically you can add something like $counter, make it zero, and increase it by one for every post. Something like this I guess:
if ( have_posts() ) { $counter=0; echo '<ul>'; while ( have_posts() ) { the_post(); if ($counter==0) { ?> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'toolbox' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail('medium'); } } ?></a><li> <h1><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'toolbox' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <div class="entry-meta"><?php toolbox_posted_on(); ?></div> </li></a> <?php $counter++; ?>You’re right, sorry.
I’m sure mitcho will answer this soon, but for now have you guys tried 3.4.1b5? It fixed many issues for me.
http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.1b5.zip
Awesome! That did it. I can now see all custom taxonomies listed, and related posts are definitely much more accurate. Thank you for such fast fixes.
Yes to both. But regarding the second issue, it might not be important or related to 3.4. I’ve noticed before that YARPP doesn’t pick posts very well when I only use tags for “Relatedness” and the post has few (or especially only one) tag.
I’m afraid it still doesn’t list custom taxonomies to disallow (tags are fine). It doesn’t show the “loading” icon for them either.
Regarding relatedness issues: I was only using tags, and now I switched to using only custom taxonomies for “relatedness”. The weird thing I noticed is that if I set it to “Require at least one (taxonomy) in common”, it still shows posts which do not have the said taxonomy. In fact, posts which do not have a common taxonomy actually have higher match score than posts which do. This might be related to the fact that the post only has one entry in the taxonomy, I’m not sure. (It doesn’t bother me too much due to the way I’m using this plugin, anyway).
Possible bug: for some reason, “Disallow by Tag” shows all tags, but “Disallow by (Taxonomy)” is empty.
Fantastic, mitcho… This version solved all problems for me.