yagraph
Forum Replies Created
-
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/MKiz3LRZI hope this will help others…
Thanks for your time msaari !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 😉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.
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/
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
Hi eagerterrier,
Good news, and thanks !
If you need any testing, please feel free to ask 😉
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: 1937Caching 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…A link illustrating the bug :
http://www.grandeurnature.eu/gn/creation/residences/Right column is generated with Recent Post Plus.
Thanks again !
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.phpbut it do not solve the issue…
Have you any code to share ripperdoc ?
Thanks for your plugin anyway !
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: 1876If I turn WP_debug ON, I see notices of a conflict with mediaelement.js.
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,
yagraphHi 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 1877Can it be the problem (PHP safe mode) ?
and here is the
State of the IndexDocuments in the index: 414
Highest post ID indexed: 1866clicking “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,
yagraphForum: Plugins
In reply to: [nrelate Related Content] Filter for custom taxonomies?The cleaner way is to use WP_Query :
http://codex.ww.wp.xz.cn/Class_Reference/WP_Queryyou will also need to learn what is the loop :
http://codex.ww.wp.xz.cn/The_LoopForum: Plugins
In reply to: [Better Related Posts] ThumbnailsHi,
everything is here :
http://codex.ww.wp.xz.cn/Post_ThumbnailsForum: Fixing WordPress
In reply to: pagination not working with query_postI’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/especially, the second part : “Update: Using Pagination”
Forum: Themes and Templates
In reply to: How to paginate a secondary loop ?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/jDWejQEnBut 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
In reply to: How to paginate a secondary loop ?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
It’s widely commented, so I hope it will be clear enough.