DeBAAT
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity Forms + Custom Post Types] Select CPT on front-end?Hai.
Had the same issue.
And found this link to do it myself:
https://bay-a.co.uk/wordpress-tips/gravity-forms-custom-post-from-form/Happy coding 😉
Forum: Plugins
In reply to: [WP License Manager] Admin menu either displays Licenses or ProductsThanks for this fix.
Works like a charm now!Nice touch for adding the update test.
Maybe a suggestion for the Boilerplate plugin itself?Forum: Plugins
In reply to: [WP License Manager] Admin menu either displays Licenses or ProductsNo trouble, glad to be of help.
Another question regarding the menu’s.
Would it be an option to combine all WPLM related pages into a single main menu? Now you have the settings page hidden in the settings menu and multiple post type menus.
This because I now had the issue my own plugin menu pages were missing as I used the same number for the position.
This is supported in the function “register_post_type” using arg:'show_in_menu' => $this->plugin_name,where the menu page is added using the plugin_name as value for $menu_slug.
Forum: Plugins
In reply to: [WP License Manager] Admin menu either displays Licenses or ProductsHai jarkkolaine.
Thanks for replying so quickly.
And the issue mentioned is fixed indeed.
However, there is a new issue.
I saw you renamed the custom post type to avoid conflicts with other plugins.
I value this greatly.
The point is that now my Test Product is not shown anymore.
The migration to the new version didn’t rename the registered post_type.
It is still “product”.
Could it be because the activate function isn’t called when updating the plugin to the new version?Thanks for pointing out this issue.
Can you try the new version?
And maybe first try to open a support question? 😉Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Showing data from other plugin?Ok, thanks!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Showing data from other plugin?Thanks for this quick reply.
And too bad it doesn’t support this.
Do you have any suggestions for alternatives?The plugins I’m talking about are actually several:
and some add-ons I’ve created myself for SLP.
Your settings seem to be ok.
Can you send me a screen shot of the category management page?
It should be something like “yoursite.com/wp-admin/edit-tags.php?taxonomy=category_media&post_type=attachment”.You can send it to de_baat (at) de-baat (dot) nl.
Hope to get this working soon.I have to admit I didn’t test my plugin for handling pdf, or any other format besides images.
This because I didn’t intend to behave it differently.
So now I included some pdf on my test site and they work as expected.Can you provide a screenshot of the WP MCM Settings page?
Hai Diana,
Thanks for the tips. Sorting would indeed be a nice addition.In the mean time, you could try to filter the media by category using the short code wp-mcm.
I’ve checked the Meta Slider you are using. It works with its own collection of media. This is a pity as the plugin is designed to work with other gallery plugins, but only those who take a list of id’s for the media collection.
The one I used for testing is Photonic, but there may be lots of other plugins working the same way.Did you check the WP MCM Settings?
The plugin is capable of handling different taxonomies, but only one at a time.
It might be that you think you are showing the ‘category_media’ taxonomy, but are showing ‘media_category’ instead.
You can also determine the current setting by looking at the WP MCM Shortcode page.Ah, wait.
It might work if you make the terms into an array:$media_categories = 'test-mcm'; if ( !is_array($media_categories)) { $media_categories = array ( $media_categories ); } $category_args = array('post_type' => 'attachment', 'post_parent' => null, 'tax_query' => array( array('taxonomy' => 'category_media', 'field' => 'slug', 'terms' => $media_categories ) ), );Hm, strange indeed.
I agree it should be simple.Would it be an option to try or test using a short code in a post?
You could use [wp-mcm category=”test-mcm”] to get the desired results.Forum: Networking WordPress
In reply to: How to output name & email of site adminHai,
Could indeed be that the user you’re querying has no phone defined.
You could try the following:function z_show_current_phone(){ // Get the current admin user, using it's registered email as key $user_info = get_user_by( 'email', get_option('admin_email')); // Use the user_info found to distill the info wanted $user_meta = get_user_meta( $user_info->ID ); if (isset($user_meta['phone']) ) { $user_phone = $user_meta['phone'][0]; } else { $user_phone = 'No phone found'; } $text = 'TESTING: '; // Return the output to show return '<span class="lmn_user_info lmn_user_phone">' . $text . '' . $user_phone . '</span>'; }The main difference is that I now get all meta info into $user_meta.
And then check for the existence of the ‘phone’ value.
For more info on get_user_meta, you could check the Codex:
http://codex.wordpress.org/Function_Reference/get_user_metaForum: Networking WordPress
In reply to: How to output name & email of site adminHai George,
You’re close, but not complete as you already thought.
You can use the same tactic as I’ve shown you before.
The trick here is that the get_user_meta() function needs a user ID to get the correct information.Try the following:
function z_show_current_phone(){ // Get the current admin user, using it's registered email as key $user_info = get_user_by( 'email', get_option('admin_email')); // Use the user_info found to distill the info wanted $user_phone = get_user_meta( $user_info->ID, 'phone' ); $text = 'TESTING: '; // Return the output to show return '<span class="lmn_user_info lmn_user_phone">' . $text . '' . $user_phone . '</span>'; }Then you can use this function the same way as for showing the name.