Problem: I cannot find the Theme Options settings when using the Ocean WP theme.
Solution: If you are using the Layouts plugin, the theme options panel will be found in the Template Layout editor screen. If you are not using Layouts, you can find the theme options panel in the Content Template editor screen.
Problem: I have a custom post type "Training Module" that occurs on multiple dates. I would like to show all the upcoming dates for the Training Module and hide all the past dates.
Solution: Create a new custom post type called "ModuleOnDate" or something similar. Set this post type to be a child of the Training Module post type. Create a View of ModuleOnDate posts, filtered by post relationship, where the parent is set by the current page. Add a custom field date filter, where the custom field value is an UNSIGNED value greater than or equal to TODAY. Insert the custom field date into the Loop Output using the Fields and Views button.
Insert the View of ModuleOnDate posts into the Training Module post's Content Template or Template Layout.
- Have a custom post type called Lawyers (uses the slug: 'lawyers' and posts are shown at mydomain.com/lawyers/post123)
- Have a page at mydomain.com/lawyers that shows the Lawyers posts.
So I'd really like to be able to have no archive for lawyers, and instead have a page I can build using different tools.
Solution:
There isn't such a straightforward way to achieve it within Types plugin, and it is a limitation of WordPress, for example, the the page "lawyers" URL is:
domain.com/lawyers/
you create a lawyer post "2", the URL is:
domain.com/lawyers/2/
Wordpress will take above URL as second pagination of page "lawyers".
I suggest you try this:
1) Remove the page "lawyers"
2) use "lawyers" as slug of post type "lawyers"
use Views wordpress archive to customize the archive page of post type "lawyers":
domain.com/lawyers/
Problem: I created a custom type named 'member' with a field named 'mail'. I want to display after the member content (of each member) a form with subject, email of the sender and body inputs. When submitting this form an email will be sent to the member using his e-mail address (field 'mail').
Solution:
- Create a new post type called "Guest Messages" or something similar. Every time someone submits the form on the front-end of the site, a new post will be created in this post type.
- Create a new custom field group that contains all the fields you want to display in the form - subject, sender email, and message. Assign this field group to the Guest Messages post type.
- Create a CRED form that creates new Guest Messages posts. Auto-generate the form code, then insert a hidden generic field. Set the value of that hidden field to be the "mail" field value of the current Member, like this:
- Insert any other information you want the email to include using Types and Views shortcodes.
- In the CRED notification builder, you select the generic hidden field "member-email" to be used as the "To:" destination email address. You may have to submit the form once on the front-end of the site to see your hidden field appear in the options here.
- Insert this CRED form in the Content Template or Template Layout assigned to the Members post type using the CRED forms shortcodes.
Problem: I use Image Map Pro, and I would like to use a custom field to display an Image Map Pro image map shortcode.
Solution: If you use a WYSIWYG custom field, you may insert any 3rd-party shortcode in the field content and see the results rendered on the site where you place the WYSIWYG field shortcode.
Problem: I would like to export custom field data from one site using WP All Export, and then import that custom field data into another site using WP All Import.
Solution: When you create an export file, you have the ability to customize the export data. In the customizer, you can drag custom fields from the right into the export builder on the left (see the attached screenshot customizer.png). Custom field values created by Types have the prefix "wpcf-". When the CSV is produced, it will include the selected custom field values (see csv.png).
Problem:
Why to use UNSIGNED option with date filters
Solution:
oolset Types stores custom date or date and time field value as a UNIX timestamp. which are positive integers. Therefore, when inserting a query filter to test a date custom field you should use the UNSIGNED option. Please note that the NUMBER option will work for “before” (lower than) and “after” (higher than) comparisons, but not for the “equal to” ones.