Title: yagraph's Replies | WordPress.org

---

# yagraph

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] [Plugin: Relevanssi – A Better Search] Display pictures in search results ?](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/#post-2252535)
 * Hi,
 * I’ve finally solved that ! the problem was that the wordpress search query filtered
   only the ‘post’ post type to be displayed in results…
 * the workaround is to put
 *     ```
       <?php if(!$wp_query) global $wp_query;
       $args = array(
       'post_type' => 'any',
       'post_status' => 'any'
       );
       query_posts( array_merge( $args , $wp_query->query ) ); ?>
       ```
   
 * at the start of search.php, and then filter in the display loop :
 *     ```
       <?php if ($post->post_type == 'attachment'): ?>
       <!-- Display something -->
       <?php endif; ?>
       ```
   
 * Here is my full code :
    [http://pastebin.com/MKiz3LRZ](http://pastebin.com/MKiz3LRZ)
 * I hope this will help others…
    Thanks for your time msaari !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232192)
 * Hi eagerterrier,
 * Your update quickly porpagated, and I’m glad to tell you that it completely solved
   my issue !
    Thanks a lot for your work, I’m nearer to publishing date now 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232185)
 * Thanks a lot eagerterrier !
 * I’m not in a hurry (Tuesday is perfectly fine), but I really hope to remove thoses
   lines before publishing the website officially 😉
 * We keep in touch, have a nice weekend.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232183)
 * Hi eagerterrier,
 * I’ve just updated your plugin, thanks…
    But I’m sorry to say it do not solve 
   the issue I encounter… I tried to your new “Enable disabling class name” option,
   but with no results… I also tried your “Enable Asynchronous Replacement” with
   no success. Maybe it’s not linked with this bug ?
 * Please take a look here : [http://www.grandeurnature.eu/gn/actions/prestations/](http://www.grandeurnature.eu/gn/actions/prestations/)
 * See the `.mtli_attachment { display:inline-block; height:24px; background-position:
   top left; background-attachment: scroll;`
    displayed at the end of the first 
   post when I use “the_excerpt” function to retrieve post in this category ? If
   I produce the same page with “the_content”, I get those lines at the end of every
   post which is triggered by MimeTypes Link.
 * If your understand ripperdoc suggestion, I suppose it’s the way to dig into…
 * If you need my template code, I can share it.
 * Cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232181)
 * Hi eagerterrier,
 * Good news, and thanks !
 * If you need any testing, please feel free to ask 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] [Plugin: Relevanssi – A Better Search] Display pictures in search results ?](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/#post-2252516)
 * Hi msaari,
 * I tried to disable every other plugin and build the index again…
    Or only mediaelement.
   js… but no results. Warnings disappear, but I get no additional information on
   why indexing is stuck.
 * Now (slightly progress as we add datas) :
    Documents in the index: 418 Highest
   post ID indexed: 1937
 * Caching in Relevanssi or with another plugin is not activated…
 * Here is my extension list apart from Relevanssi :
    - Akismet
    - Annual Archive
    - Blubrry PowerPress
    - Contact Form 7
    - Duplicate Post
    - Enable Media Replace
    - gText Widget
    - MediaElement.js – HTML5 Audio and Video
    - Media Tags
    - Mime Type Link Images
    - QR Code Widget
    - qTranslate
    - Really Simple CAPTCHA
    - Recent Posts Plus
 * I realized that maybe qTranslate is a potential conflict source, as it modify
   the database including conditional comments etc.
    By the way, I use Relevanssi
   on several blogs, and it’s the first time I encounter an issue, as it’s the first
   time I use it with qTranslate…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232171)
 * A link illustrating the bug :
    [http://www.grandeurnature.eu/gn/creation/residences/](http://www.grandeurnature.eu/gn/creation/residences/)
 * Right column is generated with [Recent Post Plus](http://wordpress.org/extend/plugins/recent-posts-plus/).
 * Thanks again !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MimeTypes Link Icons] Possible bug in MimeTypes Link plugin for multiple calls in one page](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/possible-bug-in-mimetypes-link-plugin-for-multiple-calls-in-one-page/#post-2232170)
 * Hi,
 * I noted the same problem on my current project…
 * As ripperdoc suggested, I added
    `$add_attachment_style = false;` on line 252
   of mime_type_link_images.php
 * but it do not solve the issue…
 * Have you any code to share ripperdoc ?
 * Thanks for your plugin anyway !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] [Plugin: Relevanssi – A Better Search] Display pictures in search results ?](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/#post-2252464)
 * Hi,
 * I’ve solved the PHP safe mode warning issue with my hoster, but the Relevanssi
   indexing do not seem to be improved :
 * I’m stuck with
    Documents in the index: 415 Highest post ID indexed: 1876
 * If I turn WP_debug ON, I see notices of a conflict with [mediaelement.js](http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/).
 *     ```
       Notice: Undefined variable: type_attribute in /home/grandeur/public_html/gn/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 297
   
       Notice: Undefined variable: poster_attribute in /home/grandeur/public_html/gn/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 297
   
       etc.
       ```
   
 * If I turn off all my plugins except relevanssi, it’s not better… and I can’t 
   see any image in the search result with Relevanssi or with the default search
   engine.
 * Any help welcome 😉
 * Thansk again,
    yagraph
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] [Plugin: Relevanssi – A Better Search] Display pictures in search results ?](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/display-pictures-in-search-results-with-relevanssi/#post-2252414)
 * Hi msaari, and thanks for your answer !
 * yes, the index number change, but I have a warning :
    Warning: set_time_limit()[
   function.set-time-limit]: Cannot set time limit in safe mode in /home/grandeur/
   public_html/gn/wp-content/plugins/relevanssi/relevanssi.php on line 1877
 * Can it be the problem (PHP safe mode) ?
 * and here is the
    State of the Index
 * Documents in the index: 414
    Highest post ID indexed: 1866
 * clicking “continue indexing” do not allow to improve the index farer than 414,
   even with a little amount of documents…
 * Maybe it’s only an hosting problem ?
 * By the way, many thanks for Relevanssi, it is really a great add-on, very useful
   in most website I run !
 * My best regards,
    yagraph
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[nrelate Related Content] Filter for custom taxonomies?](https://wordpress.org/support/topic/filter-for-custom-taxonomies/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/filter-for-custom-taxonomies/#post-2244747)
 * The cleaner way is to use WP_Query :
    [http://codex.wordpress.org/Class_Reference/WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query)
 * you will also need to learn what is the loop :
    [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better Related Posts] Thumbnails](https://wordpress.org/support/topic/thumbnails-22/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/thumbnails-22/#post-2245344)
 * Hi,
 * everything is here :
    [http://codex.wordpress.org/Post_Thumbnails](http://codex.wordpress.org/Post_Thumbnails)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [pagination not working with query_post](https://wordpress.org/support/topic/pagination-not-working-with-query_post/)
 *  [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/pagination-not-working-with-query_post/#post-1687457)
 * I’d advice to read this article, it worked for me :
    [http://weblogtoolscollection.com/archives/2008/04/13/define-your-own-wordpress-loop-using-wp_query/](http://weblogtoolscollection.com/archives/2008/04/13/define-your-own-wordpress-loop-using-wp_query/)
 * especially, the second part : “Update: Using Pagination”
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to paginate a secondary loop ?](https://wordpress.org/support/topic/how-to-paginate-a-secondary-loop/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/how-to-paginate-a-secondary-loop/#post-1687454)
 * ok, after hours of googling, I solved posts_nav_link() disappearing problem, 
   and use WP_Query for each loop, witch is supposed to be cleaner :
    [http://wordpress.pastebin.com/jDWejQEn](http://wordpress.pastebin.com/jDWejQEn)
 * But I’m still stuck … the “Previous Posts” button send to “[same url]/page/2”,
   and that’s not what I want : I’d like to see the previous 10 posts with the same
   meta_value …
 * Maybe this post should be put in the Advanced section ?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to paginate a secondary loop ?](https://wordpress.org/support/topic/how-to-paginate-a-secondary-loop/)
 *  Thread Starter [yagraph](https://wordpress.org/support/users/yagraph/)
 * (@yagraph)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/how-to-paginate-a-secondary-loop/#post-1687431)
 * Sorry, that’s right that’s a lot of code…
    So, I finally put the entire single.
   php file in the pastebin : [http://wordpress.pastebin.com/nxTD1rh0](http://wordpress.pastebin.com/nxTD1rh0)
   It’s widely commented, so I hope it will be clear enough.

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