Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aofolts

    (@aofolts)

    Cool, thanks. I’ll install it and see how things go.

    Thread Starter aofolts

    (@aofolts)

    Right, that’s what I was thinking. The drawback of using custom post types, though, is that when you’re creating them, you have to publish each new post separately.

    That’s not a big deal if you’re publishing a blog or two…but if you have 50-100 new menu items to update, it takes forever.

    Ideally, I’d like to have a page that allows you to publish multiple posts. You can do this by opening up a bunch of tabs in your browser with Add New Post, so you don’t have to wait for the load, but I don’t want clients to have to do that.

    Thread Starter aofolts

    (@aofolts)

    Yea, it’s not really a training thing. They just don’t want to bother logging in to WordPress, haha.

    I do charge, but the more clients I get, the greater percentage of my time goes to making updates VS building/designing new sites (which is what I’m passionate about). So, maybe I’ll take your advice and hire someone eventually.

    I did find this snippet for post via email to custom posts. It would probably get way too complicated for clients with custom fields, but worth messing around with.

    add_action('publish_phone','custom_type_by_mail');
    function custom_type_by_mail($post_id){
        $p = get_post($post_id,'ARRAY_A');
        $p['post_type'] = "YOUR_CUSTOM_TYPE_NAME_HERE";
        wp_update_post($p);
    }
    Thread Starter aofolts

    (@aofolts)

    The file isn’t outside WordPress, though. It’s in my theme folder.

    I’m also having the same problem when I try to create my own custom RSS feed. I have the following code in functions.php:

    remove_all_actions('do_feed_rss2');
    
    function zion_rss() {
    
    	load_template( get_template_directory_uri() . '/feed-rss2.php', 10, 1);
    
    }
    
    add_action('do_feed_rss2','zion_rss');

    I added the feed-rss2.php file to my theme folder, and just removed the author tag (no other changes). But when I view the feed, I’m getting another undefined error:

    <br />
    <b>Fatal error</b>:  Call to undefined function feed_content_type() in <b>/home4/palokoff/public_html/pennavechurch.org/wp-content/themes/Penn Ave Theme/feed-rss2.php</b> on line <b>8</b><br />

    Functions.php calls WordPress functions just fine, so why would files in the same folder (mailer.php, feed-rss2.php, etc) get undefined errors?

    Thanks!

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