Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter LAffaire

    (@laffaire)

    Still can’t figure it out. Any ideas anyone?

    Still couldn’t figure this out. Could it be a WordPress bug?

    Thread Starter LAffaire

    (@laffaire)

    Anybody?

    Any help?

    I have the same or similar problem. I have two custom post types “news” and “games”, both are registered similarly with ‘public’ => true and I’d like both of them to be included in the main search. Problem is, news items show up, but games do not. Drives me nuts.

    Here are the two registries:

    register_post_type( 'news', array(
    	'labels' => array(
    		'name' => __('Press'),
    		'singular_name' => __('news item'),
    		'add_new_item' => __('Add News Item'),
    		'edit_item' => __('Edit News Item'),
    		'view_item' => __( 'View News Item'),
    	),
    	'supports' => array('title', 'custom-fields'),
    	'public' => true,
    	'rewrite' => array('slug' => 'news', 'with_front' => false),
    	'menu_position' => 9,
    ));
    register_post_type( 'games', array(
    	'labels' => array(
    		'name' => __('Games'),
    		'singular_name' => __('game'),
    		'add_new_item' => __('Add Game'),
    		'edit_item' => __('Edit Game'),
    		'view_item' => __( 'View Game'),
    	),
    	'supports' => array('title', 'editor', 'thumbnail'),
    	'public' => true,
    	'rewrite' => array('slug' => 'games', 'with_front' => false),
    	'menu_position' => 5,
    ));

    Even if I add 'exclude_from_search' => false, to the game registration, just to be sure, it doesn’t change anything.

    If I add <input type="hidden" name="post_type" value="games" /> to my search form, I can search for games, but then ONLY games show up. Without the hidden field everything other than games shows up – regular posts, pages, even news – but no games.

    Any ideas?

    What part of that htaccess do you think was hacked? Looks perfectly legit to me.

    If you’re referring to the # BEGIN WPSuperCache / # END WPSuperCache block, you’ll find the same code in the plugin’s readme if you care to read it.

    Thread Starter LAffaire

    (@laffaire)

    Thanks for the reply!
    So I assume the PHP files missing in my setup would bring my installation from “half-on” to “super on”? Or what else are they for if it works without them?

    I read the readme (as I hope you can see from my “Reasons” above) but I’m still not clear about

    Why the two different models? What’s the difference in performance? How is it decided which one “hits”?

    Is the half-on mode some sort less powerful fail-safe mechanism? How less powerful, what does it do differently? I read the explanation of the different file structures at “WP-Cache vs Supercache files” but that doesn’t answer the questions above.

    And, as I wrote, I DO have the BEGIN/END markers in my htaccess file, but WP Super Cache did not modify it. Could it be because it’s looking in the wrong place for the file? For some time now, WP allows to move and rename both the wp-content directory and the actual WP code files away from their standard location. Here are some relevant Codex pages:
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
    https://codex.www.ads-software.com/Editing_wp-config.php
    See chapters “WordPress address (URL)”, “Blog address (URL)”, “Moving wp-content”. I use such a customized setup and I noticed many plugins and themes still use hard-coded paths with the default names and fail in this scenario.

    If I want to update htaccess manually, should your code replace the permalink code inside the markers or is it simply added?

    Thread Starter LAffaire

    (@laffaire)

    “News Magazine Theme 640”, which this post was about, doesn’t use this functionality. I checked the required line
    add_theme_support( 'post-thumbnails' );
    in its functions.php file and it’s not in there.

    Also, I don’t have the “Post Thumbnail” section on my Edit screen. I’m running WP 2.9.2. Does this only appear when it’s supported by the theme?

    Either way, there must be a different answer to my question above, although I see that implementing it using theis new feature would probably be better. Not something I can do though, I hope the theme author considers it.

    As for the public_html thing, I’m the only one besides the hosting company (which is Maine Hosting Solutions) that knows how to get into the back-end of the website.

    That’s what you think…
    Just make sure /public_html/ is writable by everyone, post the URL of your blog and see what happens.

    Super Cache only chaches pages when they’re “hit”, i.e. the first time somebody loads them. Then it keeps the page in chache only for the expiration time, in your case 1 hour. So if you have low traffic, you may see 0 pages cached because no page has been visited in the last hour.

    About /public_html/ “needs to be” writable – depends on by whom. By you, your group, everyone? If you, what actually is “you”? Apache serving your website may have a different user ID as you when you log in by FTP. Depends on how your host is set up. Learn about permissions and chmod. If that employee meant /public_html/ should be writable by everyone, you need to change your host immediately.

    If you had spent about a second and a half looking over previous posts here, you’d have found this has been complained about many times before:
    https://www.ads-software.com/support/topic/295083

    And, yes, the author apparently does mind helping you – or anybody who reported the same bug. So don’t wait for a fix. I’d consider this plugin abandoned.

    LAffaire

    (@laffaire)

    I changed my blog now to have full content feeds and now I find that the <description> section still has the duplicated RSS Footer text, but the <content> section doesn’t.

    As a result, my feed looks fine in readers that show full content, but quite silly in readers that only show the <description> excerpt, e.g. MyBlogLog. In the latter, RSS Footer now takes over 2/3 of the displayed text.

    I can’t work like that. Since the author doesn’t respond, I’ll delete RSS Footer. Found this one: https://www.ads-software.com/extend/plugins/copyfeed/ A bit more complex, but at least it works.

    LAffaire

    (@laffaire)

    BTW, a closer look shows that the line break mentioned above comes from the first, linked instance of the RSS-Footer text being wrapped in:
    &​lt;p&​gt; ... &​lt;/p&​gt;
    which of course evaluates to HTML p tags. The second, unlinked instance is just part of the first regular paragraph.

    LAffaire

    (@laffaire)

    I have the same problem.

    WP 2.9.1
    RSS Footer 0.9.6
    Set to “Content position: before”

    Looking at the XML source of the generated feed, in the <description> field, I see the RSS footer line once fully linked followed by a line break, then once more with links stripped out, then my actual content without line break.

    I noticed people have complained about this in multiple posts here as far back as half a year ago. Are you planning to address this or should I look for an alternative solution?

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