Skip Navigation

[Resolved] Creating a frst database

This support ticket is created 2 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by johnH-30 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2419307

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

#2419655

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.

#2419747

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

#2420351

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

#2420513

With respect you have not answered my question.
So be it.

#2420523

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

#2420797

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

#2420943

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

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/can-you-please-explain-how-i-will-load-the-toolset-extensions/

#2421273
#2423631

My issue is resolved now. Thank you!