WordPress.org

Support

Support » Plugins and Hacks » Custom Post Type for Smart Archives Reloaded plugin

Custom Post Type for Smart Archives Reloaded plugin

  • originalconcept

    @originalconcept

    Hi, I use the plugin Event Clendar Pro and I would like to display in the Smart Archives Reloaded plugin page the list of events created with the event calendar plugin.

    Event calendar pro uses custom post type, my quetion is how to edit Smart Archives Reloaded so it schows the evento from the aclendar plugin.

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • You can pass the post type like this:

    <?php smart_archives('', array('post_type' => 'your_post_type')); ?>

    See http://scribu.net/wordpress/smart-archives-reloaded/sar-2-0.html

    originalconcept

    @originalconcept

    Sweet SCRIBU, it works, thanks a lot.

    One matter more, please if you can help me.

    Here the issue:
    http://tinyurl.com/27gdcn4

    How do i show current month (november) instead december.

    originalconcept

    @originalconcept

    Your plugin will show me always the last post published, I want it begins with the current month.

    thanks!!!

    originalconcept

    @originalconcept

    The last touch:

    Where should I modify to show the current month, and not the month of the furute post.

    http://tinyurl.com/27gdcn4

    thanks

    I’d like to include post type posts too. Which file should I edit to add that line?

    You can do it like this:

    <?php smart_archives('', array(
      'post_type' => array( 'post', 'your_post_type' )
    )); ?>

    Hi Scribu,
    thanks for your help. Though I got the function to filter only the months when the custom post type has entries, It still links to the general archives template, not my custom archives template.
    heres my code,

    <?php smart_archives('generator=SAR_Custom_Generator','post_type=nira_blog'); ?>

    would you know why?
    thanks

    Hi jhodara,

    am looking for the same answer…

    Scribu, it will be great if you could put some light on this.

    Thanks!

    precisiondesign

    @precisiondesign

    I would love a solution to the custom post type issue, as well. Or at least have it unlink the month archives until there’s a solution.

    I’d imagine this functionality would require the ‘has_archive’ property set to true when defining the custom post type, correct?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Post Type for Smart Archives Reloaded plugin’ is closed to new replies.
Skip to toolbar