WordPress.org

Ready to get started?Download WordPress

Forums

Blog to ezine feature? (11 posts)

  1. GregK
    Member
    Posted 10 years ago #

    First, I've been using WordPress for a few weeks now and really like it. Thanks!
    Is there a feature, or plugin, or something, that would allow me to convert a week's worth of blog entries into an e-zine. IOW, registered users could opt in to an ezine lists and get a weekly blast with all the posts.
    Thanks,
    Greg

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    We are working towards a simliar layout where we want the users to see a "current issue" article listing on a front page.
    Based on the simple idea that you can reassign the value of "$posts" from your own query before the loop, you can produce highly customized output. Zonble has also mentioned the use of a metadata tag for each article to identify issues. If your issues are simply date based, you can use a function to automatically calculate the current issue. Please note that the following code listing produces a "monthly issue".
    <pre>
    function get_monthly() {
    global $wpdb, $tablepost2cat;
    global $m;
    $m = $_GET['m'];
    // Display last month issue by default
    if (empty($m)) $m = gmdate('Ym', mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
    $my_year = substr($m,0,4);
    $my_month = substr($m,4,2);
    $query = "SELECT DISTINCT * FROM $tableposts LEFT JOIN $tablepost2cat ON ($tableposts.ID = $tablepost2cat.post_id) WHERE (MONTH(post_date) = '$my_month') AND (YEAR(post_date) = '$my_year') AND (post_status = 'publish') ORDER BY category_id ASC";
    $posts = $wpdb->get_results($query);
    $posts = apply_filters('the_posts', $posts);
    update_post_caches($posts);
    return $posts;
    }
    </pre>
    You can see the write up (in chinese) and code listing in CNWP , if you need any clarification let me know.

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    Hmm, take note that the lines didn't wrap in the above example.

  4. GregK
    Member
    Posted 10 years ago #

    Thank you, that is very helpful. If I understand you properly, this allows me to generate a web page that displays all the posts in a given month (or other time period). What I'm really looking for is a function that allows me to email that information to all registered users.
    Maybe this is a request for a new feature in a later version.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    Greg, once you generated the page (with an alternate layout if you prefer) you can dump the html output and wrap that up with a mailing script, there should already be some built-in functions to do mass mailing, it might be beyond the scope of WordPress, (since RSS feeds has became the standard distribution mode). Otherwise you can consider putting it in cron.weekly or similar scheduling programs if you have on available.

  6. GregK
    Member
    Posted 10 years ago #

    Dotann -- Good thoughts. Thanks.

  7. OperaManiac
    Member
    Posted 10 years ago #

    wasn't there a pdf export plugin. that can be a good alternate :)

  8. GregK
    Member
    Posted 10 years ago #

    Sushubh -- that sounds really cool. Where is that plugin?

  9. GregK
    Member
    Posted 10 years ago #

  10. OperaManiac
    Member
    Posted 10 years ago #

    good if it gives u what u want :)

  11. ederic
    Member
    Posted 8 years ago #

    is there a wpzine plugin in english? :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.