Title: dev_John's Replies - page 2 | WordPress.org

---

# dev_John

  [  ](https://wordpress.org/support/users/dev333/)

 *   [Profile](https://wordpress.org/support/users/dev333/)
 *   [Topics Started](https://wordpress.org/support/users/dev333/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dev333/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dev333/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dev333/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dev333/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dev333/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/users/dev333/replies/?output_format=md) [1](https://wordpress.org/support/users/dev333/replies/?output_format=md)
2

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Related Posts] Display the date and category of the post](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/#post-11767049)
 * [@brechtvds](https://wordpress.org/support/users/brechtvds/)
 * Oh, sorry! Yes, It’s great!
    Thanks a lot for your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Related Posts] Display the date and category of the post](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/#post-11766974)
 * [@brechtvds](https://wordpress.org/support/users/brechtvds/)
 * I added the code you wrote to the theme’s functions.php file. And commented out
   my code in the plugin file (/helpers/output.php).
    This does not work, the category
   and date fields are no longer displayed on the page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Related Posts] Display the date and category of the post](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/#post-11766836)
 * [@brechtvds](https://wordpress.org/support/users/brechtvds/)
 * If I add this code to my theme functions.php file:
 *     ```
       function crp_output_list_item( $output, $post_id ) {
           // Some code
       }
       add_filter( 'crp_output_list_item', 'crp_output_list_item', 10, 2 );
       ```
   
 * Will this code COMPLETELY replace the whole/entire function (function output_relation(
   $relation ) in /helpers/output.php) of your plugin?
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Related Posts] Display the date and category of the post](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/#post-11766789)
 * Hi [@brechtvds](https://wordpress.org/support/users/brechtvds/)
 * I added this code to your plugin file (/helpers/output.php). And it works the
   way I wanted!
    Here are the changes (added lines “Customization”):
 *     ```
       $output .= '<div class="crp-list-item-title"><a href="' . $relation['permalink'] . '"' . $link_target . '>';
       $output .= $relation['title'];
       $output .= '</a></div>';
   
       /********** Customization **********/
       $relateddate = get_the_date( 'F j, Y', $relation['id'] );
       $relatedcat = get_the_category( $relation['id'] );
       $output .= '<div class="p-crp-list-item-date">' . $relateddate . '</div>';
       $output .= '<div class="p-crp-list-item-category">In "' . $relatedcat[0]->cat_name . '"</div>';
       /********** ********** **********/
   
       if ( in_array( CustomRelatedPosts::setting( 'template_image' ), array( 'below', 'right' ) ) ) {
             $output .= $image;
       }
       ```
   
 * But I don’t know how to add this using a “crp_output_list_item” hook to avoid
   making changes directly to the plugin file (use a theme functions.php file instead),
   because every time I update the plugin I’ll have to add this code again.
 * Thanks!
    -  This reply was modified 6 years, 9 months ago by [dev_John](https://wordpress.org/support/users/dev333/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Related Posts] Display the date and category of the post](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/display-the-date-and-category-of-the-post/#post-11746347)
 * [@brechtvds](https://wordpress.org/support/users/brechtvds/)
    Thanks for the 
   quick response!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bold Page Builder] PHP Notice after plugin update](https://wordpress.org/support/topic/php-notice-after-plugin-update/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-notice-after-plugin-update/#post-9475215)
 * [@boldthemes](https://wordpress.org/support/users/boldthemes/)
 * Now everything is fine! Thank you so much!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] How to integrate Giropay and SOFORT payments?](https://wordpress.org/support/topic/how-to-integrate-giropay-and-sofort-payments/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/how-to-integrate-giropay-and-sofort-payments/#post-9431715)
 * [@fullysupportedphil](https://wordpress.org/support/users/fullysupportedphil/)
 * This can not be used?
    [https://github.com/woocommerce/woocommerce-gateway-stripe/tree/4.0.0](https://github.com/woocommerce/woocommerce-gateway-stripe/tree/4.0.0)
 * Thank You!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] How to integrate Giropay and SOFORT payments?](https://wordpress.org/support/topic/how-to-integrate-giropay-and-sofort-payments/)
 *  Thread Starter [dev_John](https://wordpress.org/support/users/dev333/)
 * (@dev333)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/how-to-integrate-giropay-and-sofort-payments/#post-9430212)
 * [@fullysupportedphil](https://wordpress.org/support/users/fullysupportedphil/),
 * Can I personally try to use the 4.0.0 version of the plugin. Taking her from 
   GitHub?

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/users/dev333/replies/?output_format=md) [1](https://wordpress.org/support/users/dev333/replies/?output_format=md)
2