Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Darnok017

    (@darnok017)

    Hello…

    I just need simple answer. If it is possible please write me how. If not, ok.
    Maybe I wrote something wrong…

    I need to include a featured image in the mail between title and excerpt and I need to put category of post above title. Is it possible?

    Plugin Contributor dansod

    (@dansod)

    Hi there, i am currently adding custom filters to make the plugin more extensible. So yes, it looks like that is going to be possible in the next version.

    Thanks,
    Daniel

    Thread Starter Darnok017

    (@darnok017)

    How long does it take ?

    I do not hide that really, really need it, so maybe you have a quick hook to write in class-subscribe.php? I’m trying to add something from 3 days and I can’t get any category and image ??

    Plugin Contributor dansod

    (@dansod)

    I am hoping to have the time to release a new version during this weekend.

    Thread Starter Darnok017

    (@darnok017)

    Ok, I will wait.
    I have to run my page on monday and it is the last thing which i have to do.

    Thread Starter Darnok017

    (@darnok017)

    Hello!

    Thanks for new version of the plugin. It’s great!
    I have a problem with hook for featured image… I don’t know where to put it.
    I tried a lot of options but it’s still nothing.

    Please help!

    I have this code in email message, but i don’t know where to put a function:
    <?php add_action( 'stc_after_message_title','my_stc_after_message_title', $email['post_id'], $email['subscriber_id'] ); ?>

    Thread Starter Darnok017

    (@darnok017)

    I did it ??
    Nevermind ??

    Plugin Contributor dansod

    (@dansod)

    Great!

    Thread Starter Darnok017

    (@darnok017)

    Can I have the last question?
    Is it possible to display post category in email?

    Plugin Contributor dansod

    (@dansod)

    Sure, here is an example to print out the post categories after the email content.

    function my_stc_after_message_content( $post_id ){
      $categories = get_the_category( $post_id );
      ?>
      <?php if(! empty( $categories ) ) : ?>
      	<?php _e( 'Categories: ' ) ?>
      	<ul>
    	  <?php foreach( $categories as $category ) :?>
    	 <li><?php echo $category->name; ?></li>
      	<?php endforeach; ?>
      	</ul>
      <?php endif; ?>
      <?php
    }
    add_action( 'stc_after_message_content', 'my_stc_after_message_content', 10, 2 );

    Thread Starter Darnok017

    (@darnok017)

    Thank you very very much ?? It’s awesome!
    Does your plugin can get an author of post and date when post was published?

    Thread Starter Darnok017

    (@darnok017)

    Please answer.. ??
    I’ll donate you.. I swear ??

    Thread Starter Darnok017

    (@darnok017)

    Ok. I did it alone

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Post thumbnail’ is closed to new replies.