Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Social seems to rely on XML-RPC to do the posting

    I don’t think so.

    As the plugin author – do you have any more information? I’m having the same issue, so I’m very interested in some kind of official response on how to fix this

    Thread Starter revmitcz

    (@revmitcz)

    Okay, it turns out I was doing a lot more custom routing of the permalinks than I thought. It’s not pretty, but it works now.

    It was expecting a URL like :
    /category/podcasts/category-name
    but, I’d set it up to use :
    /podcasts/category-name

    I’m sure I set it up a little weird, cause I share category names across podcast post types AND blog posts, but I wrote a little permalink redirect in the functions.php file so now both methods work fine.

    Thanks for your help, everyone!

    Thread Starter revmitcz

    (@revmitcz)

    Okay, after doing a print_r of $wp_query on the page itself (which is archive.php), all the info appears correct. That is to say – it’s printing out exactly the same information that it would if it were on the page for that category (12 posts from that category, along with associated data).

    For some reason, however, WP is redirecting to the archive.php page and NOT the category.php page.

    Any ideas? Right now, I’m thinking I should play around with some of the options I set in my functions.php file where I define the custom post type.

    Thread Starter revmitcz

    (@revmitcz)

    Just tried upgrading to 3.7.1, and noticed I’d not defined 'hierarchical' => false in my theme’s functions.php file (thereby using the default “false”).

    Went ahead and added that in, saved my permalinks in the admin and.. same issue. My permalinks are going to what is basically my “custom post type = podcast” overview page. The page’s TITLE, interestingly enough, displays the category correctly. So, perhaps it’s something on the page itself where I’m defining which PHP file to use.

    Thread Starter revmitcz

    (@revmitcz)

    Well, I’m relieved to know I’m not the only one with this issue. But, I’m also worried that if I had been auto-upgraded to 3.7 (as will apparently be the case from 3.7 onward), my site would’ve broken pretty badly.

    Thread Starter revmitcz

    (@revmitcz)

    I’m making a little bit of progress. I did print_r on the wp_query on my archive.php page, and it shows that the category name AND post-type are indeed being passed through. Now I just can’t figure out why it’s using archive.php instead of category.php

    Just grab the 3.6.1 branch from here :
    http://ww.wp.xz.cn/download/release-archive/

    or use this direct link :
    http://ww.wp.xz.cn/wordpress-3.6.1.zip

    And upload everything EXCEPT wp-content. That should pretty much do it, provided you haven’t messed with any core WP files (which is a big no-no for this reason).

    Thread Starter revmitcz

    (@revmitcz)

    Tried it again, same result.

    To clarify – I’m not trying to access a single post, but an archive of posts. I have a custom post type called “podcast”, so visiting http://example.com/podcasts/category-name shows all posts of type “podcast” within the category “category-name”.

    Individual posts using the link structure /podcast/full-post-title work just fine.

    I realize I’m using a very customized and uncommon setup here, I just wonder if anyone else has had this issue and/or if there’s a fix (beyond “downgrade to 3.6.1 for the timebeing”).

    Thread Starter revmitcz

    (@revmitcz)

    I tried that already, and mentioned having tried it in my initial post. I guess I’ll upgrade again and try it again, in case there was something funky the first time.

    I found the solution in another post, so I’ll share it here..

    in restrict-categories.php, line 39 says :
    if ( $post_type == false || $post_type == 'post' )

    Just add your custom post type(s) :
    if ( $post_type == false || $post_type == 'post' || $post_type == 'my-custom-post' )

    Voila. The original thread I found was here :
    http://ww.wp.xz.cn/support/topic/extension-of-restrict-categories-plugin-to-cover-pages?replies=9#post-2269635

    But his suggested code didn’t work for me, despite looking perfectly okay in theory :
    if ( $post_type == false || $post_type == 'post' || in_array($post_type, array('my_custom_type_1', 'my_custom_type_2')) ) {

    So, uh.. there ya go. It’s a temp fix for now.

    If you’re just looking to include one page into another page, without a plugin, the above code will work but here’s a shorter version of it :

    <?php
    $include = get_pages('include=120');
    $content = apply_filters('the_content',$include[0]->post_content);
    echo $content;
    ?>

    esmi had it right. I had to do this same thing for a theme to display a custom thumbnail only for posts which used “<!–more–>” and the code I used was :

    <?php if(strpos(get_the_content(),'class="more-link"') !== false) : ?><img src="<?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?>" alt="thumbnail" class="thumbnail" /><?php endif; ?>

    Worked out perfectly. Thanks, esmi.

    Thread Starter revmitcz

    (@revmitcz)

    I don’t mean to rehash old posts, but I still can’t figure this thing out. I have the following plugins enabled (I’ve disabled each one, and used all the default theme files just to try and it STILL didn’t work)

    – Get Recent Comments
    – Gravatar
    – Limit Posts
    – MiniPosts
    – More Div
    – Polls
    – Popularity Contest
    – Simple Search and Replace
    – Smart Archives
    – Tiger Style Administration
    – WP-Contact Form
    – WP-Scrobbler
    – WP-Paginate

    I was also using the Feedburner Feed Replacement, and though it said it altered my .htaccess file, it didn’t appear to actually forward my feed links to my feedburner URL. So, I’m not sure that worked. Right now, I’ve got that disabled and I’m linking to the default feed file, located at :

    http://mitcz.com/wp/feed/

    I was thinking it might have something to do w//the .htaccess file – but if I delete what’s in there right now, will WP replace it w/all the necessary things again if I update my permalinks? I don’t want to lose traffic or functionality through doing that. Also, any good links to a manual tutorial on using Feedburner with WP? I found one about a week ago but I’ve not been able to track it down again.

    Thread Starter revmitcz

    (@revmitcz)

    Oh yeah, forgot to mention – I have it set to show the 15 most recent posts, as full text. I’ve also tried it as summary but.. no good. I have the “blog pages” set to show the most recent 10 posts (I’m guessing this only affects category archives on my site, however).

    BTW, My comments RSS feed works just fine.

Viewing 14 replies - 1 through 14 (of 14 total)