wordpress polylang bug, edit one post changes other posts too - wordpress

I'm trying to fix a bug in production, and I'm so desperate.
I'm using WordPress and Polylang plugins and the Redis_object_cache plugin.
the problem is:
When I make new content and translate it when I edit the translated post, the original content is changing too... and when I edit the original post, the translated content will change too.
it's like there are two posts with different IDs and different titles but the same body(content). so if change one the contents, the other will change too.
I have no clue where the problem might be, please if you have had the same issue, or you can guess where the bug might be, share your experience.

Related

Featured Image doesn't show on the Product page

I'm struggling with my wordpress page, with woocommerce. The featured image should be showing as the first image on the product page, but isn't. I've read a few other threads, like this one:
Product Images don't show (Woocommerce)
where they have some solutions, but the CSS they are proposing isn't working.
My page is here: www.byjgk.com , and for example, if you check out a product category page, like: https://www.byjgk.com/product-category/dresses/ , and then select a dress (e.g.: https://www.byjgk.com/product/the-jersey-maxi-dress-petite-in-sandstone/), you should then see the same featured which was on the category page also appear as the first image on the product page as WELL/(in addition to the other 3 images that are there).
Normally, that's how the image feature works, so there must be some opacity/other problem.
I also did try changing the woocommerce.css file, (which was also a suggestion in the link above, to put this there:
.product.has-default-attributes.has-children > .images{opacity :1;}
but i didn't see any class called exactly that with the word "children".
I also tried to put the "jquery" that was suggested:
$('.woocommerce-product-gallery--with-images').css('opacity', 1);
into the functions.php section, but it said this query had some sort of error, or it didn't like the "$" maybe...
Soooo, I'm at a loss. please help. I see a few people have asked about this on some other forums, but many don't figure it out.
thanks!
Okay, after some trial and error it seems like one of my own plugins was causing this conflict. If anyone is using this plugin, be aware of the potential - i haven't yet played with the settings on this pluging to see if that's changable.
https://wordpress.org/plugins/gallery-slider-for-woocommerce/
I would suggest you to update the theme, plugins and wordpress as well because something is not working properly for you, if the problem continues, start deactivating the plugins to understand what is causing this problem.

Featured images not appearing

So I’ve been struggling with this problem for a few weeks now. I’ve deactivated and reactivated every plug-in AND tested my theme to see if that was the cause (and it was not) but for some reason most of my featured images are not showing up and it’s terribly annoying since it messes with the way my posts appear on my blog.
I’m considering leaving WordPress if this does not get resolved soon.
The featured images on my blog will not appear. They can be uploaded and edited. I’ve rebuilt their thumbnails. They are just fine until I attach them to a post and then they won’t show.
The problem is when I set a featured image. I can click on an image I uploaded, but it won’t actually attach to the post. After I select a featured image, it says “Click the image to edit or update” or “Remove Image” but there isn’t a picture there and when I update or publish the page, still no picture. This isn’t the case across the board and I have no idea why about six pictures have worked and the others haven’t. I’ve resized them to be the same size, same picture quality, even similar names. I’ve tried it all. I don’t know what’s wrong.
How do I fix this?
If there is no code or image is hard to understand what is happening. Could be a lot of things
The theme you have does not call those images or have to be called in a different manner. Check the theme manual or get another. (hardest way an not recommend to do it) revise the theme code to check if it does it.
Check that you are in the correct page, featured images are for posts check that you are not in a page url. Click on the url on top of the post to go directly to the post page. Also publish it before going to the post url.
Surelly there may be other thing to take in consideration, but these are the most common. Without more information of the problem is really hard to get a proper answer.

How do I modify my theme in response to Wordpress 3.4 changes to image caption?

The Wordpress 3.4 release included some significant changes to how attachements with captions are handled. Specially, the mark up inserted by the attachment button has changed from this
[caption id="####" caption="caption goes here"]<img.....>[/caption]
to this
[caption id="####" ]<img src="abc">caption goes here[/caption]
As a result my theme is broken.
I understand that theme designers may need to update their themes in response. But what needs to be changed?
I have a custom theme on my wordpress site, so can't simply click to update the theme. I will need to make the necessary changes myself, but what do I need to change? What hooks or code in the template am I looking for?
Nacin recently posted about this in the WordPress.org forums. Your best bet is to contact your theme author, and let them know the issue that you are having -- I'm sure they are already aware of it.
Hello everyone.
This is a deliberate change in WordPress 3.4. Instead of having caption="" as an attribute of the [caption] shortcode, WordPress inserts the caption into the main content of the shortcode, after the image and in between [caption] and [/caption].
This change in 3.4 was necessary to allow for HTML in captions. But, like everything we develop, it was deliberately coded so it would be backwards compatible. Any theme using the 'img_caption_shortcode' filter to override how a caption is generated would work swimmingly, even though the format changed.
If I had to guess, the common issue for all for these themes is that they call add_shortcode( 'caption', 'some_function_in_their_theme' ); to customize the caption, instead of using the aforementioned filter. This is wrong. Themes should not be doing this. If the theme you are using does this, please contact the theme author. If they disagree it is a problem with their theme, I'd be happy to explain it to them.
I came here after seeing a bug report, but note that after two weeks and 2.5 million downloads, this is the only thread I've seen on this issue, so thankfully it does not appear to be adversely affecting many sites. I'm sorry if it has affected you. If you do know of any other threads, please link them to me.
Thanks,
Nacin

I have tried everything, please help. After moving Wordpress, category archives are broken

I just moved my Wordpress site to a different server and url. All the posts are showing up in the dashboard, and I can view them individually on the site, but they aren't showing up on the category archives.
For example, when I look at the 'Advocacy' category in the admin panel, it says that it contains 8 posts, but when I click "View" the category archive page says "Nothing Found".
Any idea how I can fix this? Sorry if this is a poorly written question but I'm completely at a loss as to why this is happening.
You can view it here:
http://www.carolinafarmstewards.org/cfsa-test/
Update ______
I've read through the Moving WordPress direction and tried the solutions listed there. I've tried checking the .htaccess file, resetting the permalinks, and even adding this bit of code to the wp-config.php file. Nothing helps. I'm at a loss.
Another Update ______
I've tried replacing every instance of the old url. I used Search and Replace and Velvet Blue Update Urls. It fixed a lot of instances, but everything is still broken.
Yet Another Update _____
I have tried using a clean wordpress install on the new server and importing the data using wordpress' import tool. Same result. You can see that version here: (carolinafarmstewards.org/newsite)
Updating again _____
I ran through all the fixes again this morning. Just to make sure I didn't miss anything. No change. Does anyone have any ideas?
I just noticed something __________
This is basically another way of describing the problem, but I just noticed this and thought it might be helpful in diagnosing what's going on. From the admin panel, when I am looking at the posts list, all the posts say they are assigned to categories, but when I try to filter the posts list by any category, it says "No posts found."
So, I kind of feel like an idiot, and I still don't know why it broke, but...
If I use a different theme, the categories work. I'm kind of perturbed because my theme was working before the move. I'm still not sure why that theme seems to break the categories now that it's on a new server, but it does.

Wordpress Comment Display Modification

I'm having trouble with modifying the way comments are displayed.
Currently they are always displayed as "Comments (%)". Changing the code that's displaying the comments to doesn't seem to do anything.
Where can I properly change the way # of comments are displayed?
I'm using the primepress theme - http://www.techtrot.com/primepress/
Blog link - http://stringo0.teamjl.net
My goal is adding a comment bubble displaying the number of comments - any easier way to do this is appreciated as well!
Everything you need to know about what's available in showing comment meta: Template Tags/comments popup link « WordPress Codex
Not familiar with that particular theme, but in some there are multiple references to the comment functions, depending on the context (eg display single post, multiple posts, search results, page, etc). So check all the php files for references to the comment functions.
I'm not sure why, but the comments_number and related popup function didn't work for me. I think it's because of some filters interfering, not sure which ones - could be the intense debate commenting plugin, because I noticed that it redirects to a different anchor (#idc...).
I ended up using another function, called get_comments_number which I found by looking into the wp source code.

Resources