Skip Navigation

[Resolved] Migrate Custom DB + PHP to WP and Toolset

This support ticket is created 4 years, 8 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.

Our next available supporter will start replying to tickets in about 5.67 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 4 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1551509

Tell us what you are trying to do?

Hi, I am trying to move my old website hidden link that was handmade with mysql and php code, to a wordpress version.

The website is simple: people can write a message, they could also set their name and the name of their city. Then they send the message. Later I will check the message and if all is ok I will allow the message to be seen in the website.

Is there any documentation that you are following?

I have seen your guide "How to Migrate from a Custom Database Design into WordPress" and some other videos, so I have bought Toolset because I feel it could be the solution to upgrade my website to something more easy to manage and improve.

What is the link to your site?

hidden link, I am developing the newone on the local server.

That above is the situation, while I am trying to implement the WP version of the same things I got the following troubles and doubs, hope you can give me some suggestions and confirmations about the fact Toolset could be the solution to my intent.

So, I have created the new post type and the fields I need on them. The same I have on the old website.

1. First problem: the post must have a title. I do not have a title. How should managed such situation? I have sender name, date and time, message text, location. I do not need and do not want a title nor description. Which could be the best solution about this?
Is it possible in the list of posts of my custom post type to use a different field to link to the post so that "empty" title is not displayed?

2. In the list of my custom fields, I have also set some of the to "Checkbox" type, and I have set the value to 1 when checked, and I have also set the option to set it to the value 0 when it is not checked. Then I have set the field to "required".
The problem is that if I do not check it, I got the error message because the item is empty. So the 0 value is not set.
Should I do not use required field option when using checkboxes in this way?

3. I would like to count the number of custom posts available and I would like to display such number in the website home page. I also whant to show date and time of the last post pubblished. Is that possible?

4. Again about my custom post type: would it be possible to allow every user to send messages by using a public form? I mean I would like to allow not registerd users to send messages and registered users too.
Registered users will have their nick name as "sender" while not registered users should type a name and such name should be different from all registerd users. Can I do something like this with Toolset?

5. SEO: will it be possible to use Custom Post fields values to compose meta informations for the page?
I mean meta title, description.. I would like to compose a fixed text mixed with dynamic parts that I will get from the post fields. I would like to use SEO plugins like Yoast or Rank Math.

Thanks!

#1552095

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery. I suggest you should open a new ticket with your additional questions.

1. First problem: the post must have a title. I do not have a title. How should managed such situation? I have sender name, date and time, message text, location. I do not need and do not want a title nor description. Which could be the best solution about this?
Is it possible in the list of posts of my custom post type to use a different field to link to the post so that "empty" title is not displayed?
==>
I would like to know how you imported the content to your site. Using CSV importer or WP-ALL-Import.

If you do not want post title, simply you can edit your post type from Toolset => Post Types => Edit your post type - and uncheck the post title and description box.

#1554105

Ok for the policy,

I have not imported records at the moment because the plugins you suggest in the guide all require payment at the moment and I am not sure I can build the website I need with toolset. So I have manually inserted some records to try things..

Yes I see I can disable title and description in toolset Post Types but when you go to the list of custom posts you will see some kind of autoentered text instead of the title and you have to hit such link to open post.
I have added my columns to the post list too but title is the link column and seems not possible to be removed from there.

#1554399

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - there is no way to remove the title column from the listing page until and unless you add custom code to remove it.

For example - to remove the default title column from your post type listing page, you should try to add the following code to your theme's functions.php:

function func_manage_cpt_book_columns( $columns ) {
  unset($columns['title']);
  return $columns;
}

function func_custom_admin_column_init() {
	add_filter( 'manage_book_posts_columns' , 'func_manage_cpt_book_columns' );
}
add_action( 'admin_init' , 'func_custom_admin_column_init' );

Where:
- You can change the word book with your custom post type slug with the following filter:

	add_filter( 'manage_book_posts_columns' , 'func_manage_cpt_book_columns' );

More info:
=> https://wordpress.stackexchange.com/questions/19180/how-to-remove-a-column-from-the-posts-page
=> https://stackoverflow.com/questions/26645905/wordpress-change-custom-post-type-title-in-posts-list