When I edit my post, no data is added to the taxonomy field (img 1) - although i know that i have chosen a taxonomy for it (img 2). So when i update the post, any previously entered taxonomies are dropped (added taxonomies still update the post, but wont show after update, repeating the mentioned behaviour).
Anyone have the slightest hunch to what would cause the data not to be entered?
I trailed the issue back to a few loops that i use in my edit, apparently there's issues with looping inside loops in posts. I found this https://core.trac.wordpress.org/ticket/18408 4 year old unresolved ticket explaining the behaviour. I resolved it by totally circumventing all that is WP loops and straight up querying what i need instead.
Related
I everyone first of all sorry for my English, not a native speaker here.
I have a problem that is probably WordPress related and not Wp-All-import fault, but this is giving me headache.
I have a custom post (Properties) which has some custom fields, one of it is a true/false checkbox to set the property as featured.
Everything is working fine, the value get updated and is actually visible in the backend, so properties that need to be set as "featured" are actually ok.
The problem is that the posts are not showing on frontend, unless I manually update them, doing so will fix the problem and show the posts correctly.
The website is kind of a mess, we took it over because the client was unhappy with his previous service, and many template files have been changed or commented not following best practice...
I had a similar problem once (well... not really) , where adding terms for a taxonomy (while creating the post or just from the classic taxonomy page) will lead to an infinite loading, that was because of too many blanks space in the functions.php, but this is not the case.
I just don't get what it could be, if manual update is working is it a wp-all-import related problem? But the import is fine, I mean the checkbox is actually set to true....but the posts are not showing unless I manually update them.
Thank you in advance
I would like to add that exact same problem started to happen on one of our sites recently. It all worked fine for better part of two years but since two weeks ago, I have to manually update posts after import to see the changes on frontend.
Edit: I think this might be an issue with Search & Filter Pro cache
there. I’m developing a wordpress site and i’m facing an issue with Advanced Custom Field that I can’t figure out.
I have a category called “nature” and I have create a field using the ACF plugin and set the following rule: POST CATEGORY IS EQUAL TO NATURE.
So, everytime I create a new post and then, inside the post, select the category “nature” at the right bar, it shows the custom fields right away (like ajax or something). The fields just shows. I thought that everything was fine, but there is one important problema with that.
I fill the fields with information, upload images and so on and then I publish. But it doesn’t save the first time I leave the post. It just works fine if I edit the post again and retype and resend all the images and then update the post.
I’ve tried everything, but It just does not work. Can someone help me with that?
Thanks a lot.
UPDATE - it's not the ideal scenario, but it works fine with CLASSIC EDITOR. I think the issue is related to gutenberg since I've seen some people facing the same problem as me.
I followed the below tutorials in order to create a custom post type with custom fields.
https://www.youtube.com/watch?v=-r1b0wA98Ew
https://www.youtube.com/watch?v=6URWfMTsWPo
This worked great and I added lots of data using the forms I'd created and had the data displaying on the front end of the website.
A week ago, the custom post type disappeared from the Admin Menu but the the data seems to be intact from the front-end point of view. I posted a message in the CPT UI wordpress forum and got told to simply re-add the post type and re-link the data back up.
My question is HOW do I re-link the data back up? I have re-added the Custom Post type so its ls listed in the admin menu, but I need to be able to edit the custom posts I have already added. Can anyone help? Not getting much help from the Wordpress forum. Thanks
AS the data is intact in the front end it means the entries are still in database and nothing is lost.
It is correct way to just re-add the missing post-type and WordPress will now automatically re-link/re-connect your existing data, since WordPress is storing custom post type in the wp_posts table with post_type field value to your user-defined value.
Just make sure that the post-type name is same as you used earlier because slight mistake in spelling will lead to data not displayed in admin panel as expected.
You can also post further details which would be helpful to get actual problem found out.
#leetee this has 50/50 chance, experimental and since there is no way to reproduce this behaviour; try exporting your custom post types by using Tools -> Export and then see if you could Import them into a fresh WP install...
I made custom taxonomies on wordpress and only the first 3 work and the last one for some reason. I have no idea why this is so, I copied the first one that worked and pasted it about 8 times changing all the names/singular names and slugs.
My code:
http://pastebin.com/MEfDrU08
Found the solution to it, the taxonomies had names to similair to eachother.
I’ve a question about Wordpress’ post and pages. I’m not new to Wordpress but this feature is a first for me and I can’t really seem to get my head around it.
The case is, that I have a parent page (focusareas) which has a number of static childrens (child01, child02, child03, etc.) These children are as mentioned static and do not change (or change very little over time) but the thing is that there will be some blog posts which are related to them – but the blog posts also have to function as an independent entity. Each blog post can have a number of comments, but the child01, 02, 03, … n subpages cannot have comments.
Is it possible to “connect” or “relate” a blog post to a page (subpage) and list them on the subpage?
I don’t know if I’ve explained it correctly but otherwise please let me know and I’ll draw a diagram or explain in further details.
Sincere
- Mestika
I think you need 2 things.
The first is use custom fields to store wich posts ( or category, or anything else ) is related to this page. http://codex.wordpress.org/Custom_Fields
The second is use get_posts loop, to "call" these posts inside other loop, with all his features: http://codex.wordpress.org/Template_Tags/get_posts