916VT
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to exclude the current category from a query ?If you have any clue, please share it 😉
Forum: Fixing WordPress
In reply to: Display 2 posts from wp_query with an exclude category?I tried to use that to exclude the category from the source :
$args = array( 'cat' => -$post_cat , 'posts_per_page' => 2 , 'orderby' => 'rand' );Unfortunately, it breaks somehow the split of languages based on Polylang and I get a mix of content.
That’s why I’m tried the ! in_category way upper.
Forum: Fixing WordPress
In reply to: How to exclude the current category from a query ?Hi Adam,
You’re perfectly right 🙂
Unfortunately, I didn’t find the solution yet… I open a new thread with a new code here :
https://wordpress.org/support/topic/display-2-posts-from-wp_query-with-an-exclude-categoryI may have just paste it here I guess. I though it was easier as the issue changed a bit. Sorry about that…
Forum: Plugins
In reply to: [Polylang] Exclude category from loop, the Polylang wayOK, thanks your fast answer. I will somehow else 🙂
Forum: Plugins
In reply to: [Polylang] Exclude category from loop, the Polylang wayHi Tiago ADPS,
It’s a long time but have you find a way to solve that issue ?
I’m facing something similar now.
Cheers
Forum: Fixing WordPress
In reply to: Add style (bg-img) to post image divs using functions.php$content is for calling the class .content which is on each post div wrapper.
That one works because it added the .cropped divs well.Forum: Fixing WordPress
In reply to: Add style (bg-img) to post image divs using functions.phpI’m not sure to get it right but strstr seems to help to find the first occurrence of a string, but I need to alter all of them.
The function addDivToImage works, so that’s my first step.
But now that I have to add the bg alteration, I got lost on the syntax. It’s started to be far away of my padawan php level…
It should be possible to get something like working :
function breezer_addDivToImage( $content ) { $pattern = '/(<img([^>]*)>)/i'; $imgUrl = 'get-image-url-somehow'; $replacement = '<div class="cropped" style="background-image:url('$imgUrl')">$1</div>'; $content = preg_replace( $pattern, $replacement, $content ); return $content; }Forum: Fixing WordPress
In reply to: Add style (bg-img) to post image divs using functions.phpHi Quin,
Thanks for your message.
Actually, the background of each div will be different as it should be the image url.
So, if in a post, I’ve got 30 images, I don’t want to have to copy/paste 30 times the image url to the style of the div. It must be a way to get it automatically, like for getting the images wrapped by a div.You know what I mean ?
Forum: Fixing WordPress
In reply to: Add style (bg-img) to post image divs using functions.phpPlease tell me if it’s not understandable 🙂
Hi George Jipa,
You’re right, it works perfectly fine now.
Thanks for your fast support and this great plugin !
Hi there,
Same for me, I can not login without changing the folder’s name with Filezila to crash it down.
Then, it works fine. And doesn’t again after reactivate the plugin.
Cheers
PS. I use iThemes Security plugin that changes wp-admin/wp-logn to whatever you want.
Forum: Plugins
In reply to: [Social Sharing (by Danny)] Pinterest, YouTube and other social networks+1… for Pinterest and email buttons 🙂
Forum: Plugins
In reply to: [Polylang] Plugin Polylang – CommentsAnswer was here : http://wordpress.org/support/topic/merging-comments-from-different-languages?replies=3
I hope everything will work now and maybe this will make someone life easier 🙂
Forum: Plugins
In reply to: [Polylang] Plugin Polylang – CommentsAnother question regarding this plugin.
We can not merge comments of differents languages from admin area.
I found that : http://wordpress.org/support/topic/show-comments-for-both-languages-polylang?replies=4
And the code on function.php and the wpml-comment-merging.php, the count if right (with 2 FR comments and 1 EN comment, it displays 3 Comments) but it displays only the one(s) from current language.
I don’t want to use the Polylang plugin version provided by jongorrie because it’s not up to date.
Is there anyway to make it works with the current version ?
PS. Love this phugin but the comments management is making me crazy :$
Forum: Plugins
In reply to: [Polylang] Plugin Polylang – CommentsI got it right using that :
$language = get_locale(); if ($language == 'en_US') { ... do something ... } else { ... do something else ... }From = http://wordpress.org/support/topic/setting-different-footers-per-language?replies=4
I hope do not need more than two languages because it seems to be quite dirty to multipliate these when I miss a string.
If someone knows a better way, I’m glad to hear it 🙂
Cheers