Forum Replies Created
-
AuthorPosts
-
July 4, 2017 at 5:36 pm in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #816427
@jurgen1979
This is still not fixed in Enfold. As In my original post: CPT from toolset will not show in the grid element without a core hack! So I would not advice that as a fix. I fixed this by using CPT UI plug-in instead of Toolset CPT. Not a good fix but at least it is working for now. If you want to use Toolset, you will need to use an other theme.March 19, 2017 at 1:54 pm in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #763187Hello Ismael,
Great. Although I do not consider a core hack a fix, it is more just a temporary solution. I would like to see a more permanent future proof fix. So in what version of Enfold is a fix planned so the above mentioned core hack will not be needed?March 19, 2017 at 12:14 am in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #763028Hello Ismael,
I got the following information from Toolset developers:“The case with Enfold is exactly the same. Their init:10 callbacks includes a AviaBuilder::init method, which calls the AviaBuilder::createShortcode method, which instantiates all the aviaShortcodeTemplate subclasses. Each one of those subclasses constructor then calls their aviaShortcodeTemplate::extra_config method, which then calls the popup_elements method of each individual shortcode class.
In the case of the portfolio module (shortcode), that popup_elements method contains a call to AviaHtmlHelper::get_registered_post_type_array which fires a native get_post_types call.
By the time this all happens, we still did not reach the init:10 callback by Types, wpcf_init_custom_types_taxonomies, hence no post type or taxonomy from Types is available.
Again, as we do register our items in the right place, I would strongly suggest contacting the Enfold theme authors and encourage them to initialize anything requiring custom post types or taxonomies to happen way later.”
It seems that the priority of callbacks should be modified so that custom post types created with the correct priority aren’t excluded.
March 16, 2017 at 11:16 am in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #761829“after_setup_theme” -> gives the same cpt list as before, but not ‘training’
“wp_loaded” -> gives no output at all.March 16, 2017 at 10:01 am in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #761798Hello Ismael,
In regard to your question:If you run the “$types” variable in a var_dump function, let me know if you can see the custom post types created by the plugin.
I made a dump of
$types
using your function and I can see all the cpt as listed in avia builder but not the ‘training’ cpt.March 16, 2017 at 9:41 am in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #761791Hello Ismael,
In reply to you earlier question:Please ask the Toolset support if they have an existing function to retrieve registered custom post types via their plugin.
I have the following answer from toolset:
Our developers have responded to their question with:
“Types registers its custom post types at
init:10
which is the usual place to do such thing: https://codex.wordpress.org/Function_Reference/register_post_type" which means that get_post_types should work as intended.I’ve escalated this to our internal developers in case they can help offer insight as to why these CPTs aren’t being shown. I’ll keep you updated with anything they find.
March 15, 2017 at 2:40 pm in reply to: Custom post type not appearing in posts dropdown in Portfolio Grid element #761429Hello Ismael,
I added your question in my support thread at Toolset. I will let you know if there is a response.March 15, 2017 at 1:04 pm in reply to: Custom post type not appearing in posts dropdown in Blog Posts element #761379Hello Ismael,
In regard to you answer:
The Portfolio Grid element can only filter the “portfolio” post type, it doesn’t accept other custom post types or custom taxonomies. You can’t use it even if you’re using the CPT UI plugin.
This is NOT true as I am using CPT UI now and this does work as it should. The CPT shows up and I can select it and shows on front end.
In answer to:
Please hire a freelance a developer or contact our partner, Codeable, if you want to create a new option in the elements.
I am a developer so if you provide me with the info I need I can get it working myself.
I will open a new support thread for the portfolio grid issue.
- This reply was modified 7 years, 8 months ago by herbie4. Reason: layout: block quote was wrong
March 15, 2017 at 10:17 am in reply to: Custom post type not appearing in posts dropdown in Blog Posts element #761262Hello Ismael,
Thank you for the quick response. I am using portfolio grid (I need to use the filters) and there your solution does not work. I would like the cpt to show up in portfolio grid post type listing so I can exclude all other types that now show up.
March 15, 2017 at 9:47 am in reply to: Custom post type not appearing in posts dropdown in Blog Posts element #761249Hello Ismael,
Thank you for the quick response.
Yes, I have custom taxonomy attached and they do show up. But, to have only post of the CPT showing, I need to be able to select the CPT I created in Types, but this does not show up.
Also I dropped a message at Toolset about this and they replied that they register the CPT according to WP guidelines. So it would be great if you could take a look t see if this can be resolved.
Answer from toolsetAt the moment this website is only set up in local test environment (link in private area). Please let me know if you need the duplicator file of the test environment or a log in to a remote environment.
I hope you can help me solve the issue.
March 9, 2017 at 5:23 pm in reply to: Custom post type not appearing in posts dropdown in Blog Posts element #758465Just wondering if there is any way of getting the CPT from Toolset Types to show inside the editor option list. I have used the following:
// add the custom posttypes to the builder elements add_theme_support('add_avia_builder_post_type_option'); add_theme_support('avia_template_builder_custom_post_type_grid');
But the cpt from Types does not show up in the list. All others from woocommerce and others are there just not from Types plugin.
Is there any sollution to this other then switching to CPT UI plugin. -
AuthorPosts