Geoffrey Cleverley
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
display standard fields (title, editor, featured image) in relationship metabox
Started by: Geoffrey Cleverley in: Toolset Professional Support |
5 | 8 | 5 years, 11 months ago | ||
toolset_build_intermediary_post_title – possible to use filter retroactively?
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: In the beta version of Types plugin, new API filter "toolset_build_intermediary_post_title", it only works with newly created intermediaries. Any previously created intermediary's title remains unchanged. Do you have any advice on how to make this change retroactively, incase the need arises? Solution: You are right, the filter hook "toolset_build_intermediary_post_title" only works when you create new intermediaries, it won't work when you edit an existed intermediary, you will need to edit them one by one manually, see the workaround I mentioned in your previous thicket: Q2) When you create the "Relationship", in the final step "Names", enable the options Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Beta Types/Relationships API – Intermediate Post types – 2nd Class Citizens????
1
2
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: In the latest beta version of Types plugin, there is new many-to-many relationship, I am asking for / hoping for the titles of the intermediary post types to either: A) Be accessible in the metabox when adding a relationship to posts B) Auto generate using the parent post titles and not their post Ids Solution: Q1) Be accessible in the metabox when adding a relationship to posts There isn't such a feature within Types Beta version. Currently, you can try this: https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/ screenshot: Q2) Auto generate using the parent post titles and not their post Ids At the moment, we don't support that in the GUI in a very nice way, but I think we can open that to debate /** * toolset_build_intermediary_post_title * * Allow for overriding the post title of an intermediary post. * * @param string $post_title Post title default value. * @param string $relationship_slug * @param int $parent_id * @param int $child_id Relevant Documentation: https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/ |
2 | 16 | 6 years, 8 months ago | ||
Repeating Fields Groups – Accesible by API / Functions or just Views GUI
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: I am moving a site over from using CMB2 to take advantage of the upcoming relationships API. It contains repeating fields but using CMB2, they are just stored as a serialized array in post meta. From reading the documentation, it seems Toolset stores them within a hidden CPT, and all I can see is tutorials for accessing them by using a View/GUI. I wasn't intending to use Views for this project. Do you have documentation for how to access them with API Functions? Solution: There isn't exact document for the Repeating Fields Groups API, but it is using child post type to store the Repeating Fields Groups , so you can use function toolset_get_related_posts() to get the child posts, then display custom field of each child post, for example: 1) Create a Repeating Fields Groups "my-fields-group" in post type "my-cpt", add some custom field into the field group 2) In the your theme file single.php, add below codes: $child_posts = toolset_get_related_posts( get_the_ID(), //Post to query by. 'my-fields-group', //Slug of the relationship to query by 'parent', //Name of the element role to query by. 100, //Maximum number of returned results 0, //Result offset array(),//Additional query arguments 'post_id', //Determines return type 'child' // which posts from the relationship should be returned ); var_dump($child_posts); As you can see the last parameter is "child", it will be able to query the child posts of current post. Relevant Documentation: |
2 | 4 | 6 years, 8 months ago | ||
Types Beta – Embedded Media Field in Repeatable group – Endless loading metabox
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: Trying to use an Embedded Media Field in a Repeatable Group. Just getting an Endless loading message - please see screenshot. Solution: I deactivated the beta plugin, restarted my local environment, then reactivated beta plugin, and the situation seems to have resolved itself. Relevant Documentation: |
1 | 2 | 6 years, 8 months ago | ||
Beta Types/Post Relationships API – Querying Intermediaries still not possible?
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: Still not able to query the intermediate post types with the Beta version of Types plugin 2.3-b4, right? Solution: With Types plugin version 2.3-b4, you will be able to query the intermediate post types with the Beta version of Types plugin 2.3-b4, you can download it here: https://toolset.com/account/downloads/ Choose channel: Beta Then use the codes as I mentioned in your previous ticket: https://toolset.com/forums/topic/new-post-relatsionships-api-call-to-undefined-function/#post-622828 Step 2) and Step 3) Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ |
2 | 3 | 6 years, 8 months ago | ||
New Post Relatsionships API – ‘call to undefined function’
1
2
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ Details CPTs slugs Relationship slug Intermediary CPT slug Intermediate CPT custom field slug So on my Music Release CPT theme template I want to: 1. Display the purchase link from the intermediary cpt that links the Music Release and the Music Store Solution: Types 2.3-b3 (beta 3) indeed didn't include the new public API, it was released only yesterday with 2.3-b4, you can download it here: - originally, it was intended to be released both 2.3-b4 and 2.2.22 at the same time, but there have been delays (glitches on the part of the beta version) And you can use function toolset_get_related_posts(), like this: $intermediary_posts = toolset_get_related_posts( get_the_ID(), //Post to query by. 'music-release-music-store', //Slug of the relationship to query by 'parent', //Name of the element role to query by. 100, //Maximum number of returned results 0, //Result offset array(),//Additional query arguments 'post_id', //Determines return type 'intermediary' // which posts from the relationship should be returned ); Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ |
2 | 18 | 6 years, 8 months ago | ||
Relationships crashing – Beta
Started by: Geoffrey Cleverley in: Toolset Professional Support |
2 | 4 | 6 years, 8 months ago | ||
Gutenberg Yay
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: I am just wondering, with Gutenberg around the corner, what the plan is for Toolset? Do you know yet, if you will be sticking with Metaboxes underneath the primary gutenberg editor, or whether you will be converting your Types custom fields into Blocks, and using Gutenberg Block Templates attached to Post Types, as opposed to field groups? Solution: Toolset is fully integrated with the Gutenberg. Take a look at Toolset’s Blocks Library to learn more about each block. Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Views/Types Beta – displaying intermediary post fields
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: Solution: Unfortunately no this isn't possible as yet. |
2 | 3 | 6 years, 8 months ago | ||
Types / Views Beta: How to display intermediary post fields
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Problem: How can I display custom fields applied to the intermediary post created by the new M2M Relationships beta? Solution: This functionality is not yet ready and will be implemented in a future beta release. |
3 | 7 | 6 years, 9 months ago | ||
Types Beta 2.3 – new relationships moved out of post meta
Started by: Geoffrey Cleverley in: Toolset Professional Support |
2 | 9 | 6 years, 10 months ago | ||
Maps plugin – either address or lat long?
Started by: Geoffrey Cleverley in: Toolset Professional Support |
2 | 5 | 6 years, 10 months ago | ||
White Screen of Death after updating and activating Layouts 2.1
Started by: Geoffrey Cleverley in: Toolset Professional Support |
2 | 4 | 7 years ago | ||
AJAX updating of parametric search is unreliable – keeps sticking….
Started by: Geoffrey Cleverley in: Toolset Professional Support |
2 | 9 | 7 years, 2 months ago |