Hello,
I am creating a test website on localhost to get to know about Toolset.
I am creating a database but do not yet know what fields will be required.
Should I create just one field eg RecordID and allow the software Toolset to create others.
Is there an article regarding this please?
Thank you
John
Hello,
There is a limitation of WordPress core, you need to input value into the post title or post content, otherwise you can not save the post.
So if you don't need post content(body) field, you need to input value into post title field.
Thanks Luo for your answer.
In the past I have created a table and fields and then used forms to enter the information, but it seems from what you say this is not the case with Toolset.
Can your direct me to where I can get more information how this process is carried out.
At the moment I am not familiar with the terms used.
Thanks
John
I don't find the document, but you can check the WordPress core code here:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/post.php#L2450
line 2450 ~2455:
if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) {
if ( $wp_error )
return new WP_Error('empty_content', __('Content, title, and excerpt are empty.'));
else
return 0;
}
If Content, title, and excerpt are empty, WordPress will return error and prevent creating post.
See similar thread:
https://wordpress.stackexchange.com/a/28223
With respect you have not answered my question.
So be it.
I assume we are talking about Toolset post forms, if there isn't post title field, Toolset post forms will generate the post title automatically, for example "autodraft .... "
See Toolset Forms plugin file \plugins\cred-frontend-editor\application\models\auto-draft.php:
/**
* Calculate the unique post title for an autodraft, based on the current user IP.
*
* @return string
* @since 2.5.7
*/
public function get_unique_post_title() {
return 'CRED Auto Draft ' . md5( $this->get_ip() );
}
In the link I provided above:
https://wordpress.stackexchange.com/questions/28021/how-to-publish-a-post-with-empty-title-and-empty-content/28223#28223
You can find other workaround which can save post when for post title is empty
I read this thread with interest,
https://toolset.com/2015/05/toolset-starter-a-new-free-theme-to-get-started-with-toolset-plugins/
it sounds like it could be interesting to me and maybe it has been updated after 2015.
Can you please advise me if it is still available or maybe in a more basic form if that is possible.
Thank you
John
Hello
I Found some videos explaining how to create a basic WP site with hidden link
Can you please explain how I will load the Toolset extensions.
Thank you
John
My issue is resolved now. Thank you!