Abhishek
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF to Custom Database Tables] Using an existing tableHi @mkimmet,
Yes, you can use an existing custom table. To do so, ensure the following:- The table must include a post_id column (it should contain the associated post’s ID)
- The column names should match your ACF field names exactly (both column names and ACF field names must be identical).
Forum: Plugins
In reply to: [ACF to Custom Database Tables] Database values ??are stored in 2 tablesif I use the filter you mention, the ACF will save at new table right?
Yes, when you add the filter, ACF data will be stored only in the custom table.
but then functions like get_post etc will not works? because it’s not pull from the new table?
The get_post function retrieves WordPress post details. To fetch data from a custom table, you can use the following methods:
1. Mysql query using WPDB
2. get_field function
3. Helper functions provided by the plugin such as get_custom_table_fieldsForum: Plugins
In reply to: [ACF to Custom Database Tables] Database values ??are stored in 2 tablesHi @chaoscript,
To keep your WordPress site compatible with other plugins, by default this plugin saves ACF field data in the?
wp_postmeta
?table along with a custom table. You can disable this behavior using this filter.add_filter('acf_ct/settings/store_acf_values_in_post_meta', '__return_false');
https://acf-custom-tables.abhisheksatre.com/docs/filters/store-acf-values-in-post-meta-table/
Hi @imachris,
Thank you for the detailed explanation! I’ll try replicate the issue and work on a fix.
I appreciate your feedback and will keep you updated.Forum: Plugins
In reply to: [ACF to Custom Database Tables] No p tags with WYSIWYG fieldHi,
To convert WYSIWYG field content to HTML use following snippet:echo do_shortcode(apply_filters('the_content', $content));
Forum: Plugins
In reply to: [ACF to Custom Database Tables] Relationship BidirectionalHi @neticonic,
Currently the plugin does not support “bidirectional relationship” field type.
Forum: Plugins
In reply to: [ACF to Custom Database Tables] Will the API POST and GET methods still work?Hi,
Thank you so much for your kind words and support! ??
Our plugin supports ACF functions likeget_field
andupdate_field
. If you’re usingget_field
to read data andupdate_field
to update field data in your REST API, it will work perfectly.
https://acf-custom-tables.abhisheksatre.com/docs/functions/Forum: Plugins
In reply to: [ACF to Custom Database Tables] Is this plugin maintained ?Hi,
Yes, the plugin is actively maintained and compatible with the latest ACF and WordPress versions. We released a new version today.
Forum: Plugins
In reply to: [ACF to Custom Database Tables] Image field saves as ID instead of URLHi,
The return format determines how image data is returned by ACF’s
get_field
function. The plugin saves the image ID in the database for dynamic retrieval. You can convert the image ID to a URL using WordPress functionwp_get_attachment_url($image_id)
https://developer.www.ads-software.com/reference/functions/wp_get_attachment_url/Hi,
This plugin uses theacf/save_post
action to handle data saving in custom table. If Dynamic.ooo is not using this action then the data will not be saved in the custom tableCould you please share the add-on (link/details) you are using to save data from the frontend? We will add support for it.
Hi,
Thank you for reporting the issue. We will fix this on priority.
Hi,
You can use acf/save_post action with high priority.
Example:add_action('acf/save_post', 'handleAcfSave', 20); // Priority 20 function handleAcfSave( $post_id ) { // ACF data is saved to custom table. }
Using the
transition_post_status
action with a high priority will also work.
FYI, our plugin offers theacf_ct/update_table_data
filter, allowing you to modify custom table data before it’s inserted into the custom table.Hi @selim13,
Thank you for reporting the issue and suggesting the approach. I will introduce support for field groups generated via PHP.Hi @selim13,
Thank you for reporting the issue and suggesting the approach. I will introduce support for field groups generated by PHP.
Forum: Plugins
In reply to: [ACF to Custom Database Tables] ACF Option PagesHi
Plugin does not support option pages. The reason for this limitation is that option page data typically associated to a single entity rather than multiple entities like posts.