Title: srpd's Replies | WordPress.org

---

# srpd

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/srpd/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/srpd/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different excerpt lenght.](https://wordpress.org/support/topic/different-excerpt-lenght/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/different-excerpt-lenght/#post-1430694)
 * i’m trying in other way, cutting the excerpt:
 * `<?php echo '' .substr($post->post_excerpt,0,50); ?>`
 * but why $post->post_excerpt doesn’t work?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different excerpt lenght.](https://wordpress.org/support/topic/different-excerpt-lenght/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/different-excerpt-lenght/#post-1430652)
 * thanks 🙂
    but is there a way to set it without using plugin?
 * i’m studyng something like this
 *     ```
       add_filter('excerpt_length', 'my_excerpt_length');
       function my_excerpt_length($length) {
           if(in_category(14)) {
               return 13;
           } else {
               return 60;
           }
       }
       ```
   
 * but the problem is that i can’t use category to define them.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to change show post per page in category-ID.php](https://wordpress.org/support/topic/how-to-change-show-post-per-page-in-category-idphp/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-change-show-post-per-page-in-category-idphp/#post-1418499)
 * good it work, thanks so much man 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to add loop in header](https://wordpress.org/support/topic/how-to-add-loop-in-header/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-loop-in-header/#post-1415931)
 * really thanks for your help and for your patience 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to add loop in header](https://wordpress.org/support/topic/how-to-add-loop-in-header/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-loop-in-header/#post-1415713)
 * thanks, but i don’t want to hide post in header when i’m displaying single.php
   but i need to exclude category 248 from list in single.php. for example when 
   i’m reading other post there is a next post link that redirect to a 248 category
   post, and i want to hide this category from dirrect access to post…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to add loop in header](https://wordpress.org/support/topic/how-to-add-loop-in-header/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-loop-in-header/#post-1415702)
 * yes you are right, sorry.
    Ok i try to explain: i have category 248, and category’s
   post must be showed only in the header on blog not in single.php. post details
   must not be showed, when i click on permalink in header’s post i’ll see a page
   like an archive a list of post in 248 category and not a link to single post.
   uhmmmm sorry for my english, i hope you can understand what i’m saying 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to add loop in header](https://wordpress.org/support/topic/how-to-add-loop-in-header/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-loop-in-header/#post-1415694)
 * hi MichaelH it works, really thanks, and there is a way to exclude category from
   single.php?
    thanks again 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to customize next_post_link()](https://wordpress.org/support/topic/how-to-customize-next_post_link/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-to-customize-next_post_link/#post-1355559)
 * thanks, it works 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to add multiple sources url in fecth feed](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/#post-1344778)
 * oh no problem, thanks to you for trying to help me 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to add multiple sources url in fecth feed](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/#post-1344776)
 * ok i solved in this way
 *     ```
       // Get a SimplePie feed object from the specified feed source.
       $rss = fetch_feed(array('http://firsturl', 'http://secondurl' ));
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to add multiple sources url in fecth feed](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-multiple-sources-url-in-fecth-feed/#post-1344771)
 * uhmmm ok, thanks for asnwer but i’m reading this [http://simplepie.org/wiki/tutorial/sort_multiple_feeds_by_time_and_date?rev=1179894636](http://simplepie.org/wiki/tutorial/sort_multiple_feeds_by_time_and_date?rev=1179894636)
   probably it is possible….
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to cut the post title](https://wordpress.org/support/topic/hot-to-cut-the-post-title/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/hot-to-cut-the-post-title/#post-1340185)
 * thanks so much 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Post thumbnails](https://wordpress.org/support/topic/post-thumbnails-1/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/post-thumbnails-1/#post-1333911)
 * anyone can give me a hint or suggestion? 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Post thumbnails](https://wordpress.org/support/topic/post-thumbnails-1/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/post-thumbnails-1/#post-1333669)
 * this is the function that i’m trying to use :
 *     ```
       <div id="related_post">
       <h4>Questo articolo ti &egrave piaciuto, allora leggi anche:</h4>
           <ul>
             <?php
        $rand_posts = get_posts('numberposts=5&orderby=rand');
        foreach( $rand_posts as $post ) :
        ?>
             <li><a href="<?php the_permalink(); ?>">
               <?php the_title(); ?><?php the_post_thumbnail( 'related-post-thumbnail' ); ?>
               </a></li>
             <?php endforeach; ?>
           </ul>
       </div>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [random post](https://wordpress.org/support/topic/random-post-2/)
 *  Thread Starter [srpd](https://wordpress.org/support/users/srpd/)
 * (@srpd)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/random-post-2/#post-1333648)
 * uhmmm i solved putting the code of random post in top of comments.php and not
   in single.php 🙂

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/srpd/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/srpd/replies/page/2/?output_format=md)