Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am trying to figure out how to store user specific data in Wordpress. The user is supposed to insert their weight, the date and then be able to make multiple entries so that each entry can be presented in a table for that specific user.
I was wondering if this is possible to do through a plugin like JetEngine? And would this be possible to do through meta data or would I have to use something like Custom Content Type?
Thank you in advance.
There's two solutions for your problem.
Easy solution
Use a plugin like ACF with repeater add-on and create custom field for each kpi (weight, height, etc.) and for each add two sub field date and value.
House made solution
Create a json structure to be saved in the user meta which then decodes in php to show it in a table.
About this solution.
// The information return via $_POST
$weight=json_encode($_POST['weight']);
update_user_meta(get_current_user_id(),'weight',$weight)
// To show this information
$weight=json_decode(get_user_meta(get_current_user_id(),'weight',true);
// Create the table.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
I am trying to get fields values from a Field Group added in ACF Pro in a pattern.php file. However I was not able to understand why I cannot access the global $post in this file, so I cannot query for the fields.
I do not want to add the Field Group as a Wp/Gutenberg block, I am just trying to display data in the chosen template.
Is there a better way or any way to achieve this?
This is the files structure I was working on
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am developing an app in flutter where I have a stories section. Where users can upload stories ( Text / Images). What I want is to automatically delete the posts after one day.
What I have achieved is to delete one day ago data by checking the timestamp of the post and a simple calculation and a remove call to delete it.
But what I want to achieve is an automated process. Like data is automatically deleted after one day without checking for posts on random calls or time. Like I don't know if it's possible or not. But if someone has a solution it would be a great favour. Thakns
Before displaying an item you can check if it is posted in the last 24 hours and if not then don't display it.
To delete the items from Firestore you can set a scheduled job in the backend.
You can use cloud functions pubsub. Write a function like "every one hour find & delete the items that are created before the last 24 hours". Take a look here Schedule functions.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm making an app with a pretend stock market and I need to update a certain field (an array (prices) in an object (stock) of a document (the company). I need to have a random value between the last price - 2 and the last price + 2 and add that to the prices array for every company (document).
How would I go about this?
Thanks in advance!
Also any advice to simplify this question would be much appriciated!
Query the entire collection, iterate each document, and foreach document:
Read the contents of the array.
Update the contents of document with the new values you want it to have.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Question in Contact Form 7 wordpress, is there a way to get the emails inputted by the visitor from the database? are the emails save in the database? thank you guys.
Ramje,
Take a look at the following plugin:
http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/
By default, when CF7 sends an email, the message is not stored to your database.
It seems that we have a plugin for storing Contact Form 7 information into DB made by the same team behind CF7. It's called Flamingo https://wordpress.org/plugins/flamingo/
I made a step by step guide of the plugin and also showcased a few other alternatives to it https://deliciousthemes.com/save-contact-form-7-submissions-to-database/
One of the Flamingo downsides is that it can't store attachments too. However, there are solutions.
Thanks!
You can use this plugin https://wordpress.org/plugins/contact-form-advanced-database/
It also has export and and search option at the backend.
I'm using this plugin (it costs $16): http://codecanyon.net/item/contact-form-7-database/14684587
You can export your emails (or any things) to csv file, maybe it can help you.
Hello Check out this New Plugin...! Its create input field as Column Name in Fields....!
https://wordpress.org/plugins/save-contact-form-7/
It help me out alot to update and add some field after form submission
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create a WP site which will have multiple subjects. Each subject will have multiple lessons and each lesson will have meta data like title, description etc etc. A User will be allowed to read some lessons and based on number of lessons read, he will be assigned some custom badges.
While showing any lesson, we should be able to show the list of users who have already read that lesson.
To get this done on WP, I am planning to use some Custom Content Type Plugin which I can use to create Subject, Lessons and the User Meta to store users action on any lesson. The Badges can also be made part of Users Meta.
The Problem I see are
I dont know any way to map Subjects to Lessons i.e while creating a new lesson, I should be able to map it to one subject (like we do node linking in Drupal )
I am not use if User meta table can be used to store many to many info like "XYZ user have read 25 lessons" and "ABC Lesson was read by 10 Users"
What should be the best design for this kind of Application.
cant you solve problem 1 with categories?
And if you save each 'read' in the usermeta with each lesson having an unique meta. You could just count those.
I dont know any way to map Subjects to Lessons i.e while creating a new lesson, I should be able to map it to one subject (like we do node linking in Drupal )
Why don't you set up the subjects as categories? Then when you create each lesson you can map it to the subject category.