Will
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Show Registration On Category PageResolved
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Show Registration On Category PageThanks, that’s what I ended up doing for now, creating a page template for the category and restricting it with your plugin via blocked page by default. I am showing your registration form and the login widget in the sidebar.
Would be a nice feature to block by category page or tag.
Thanks
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Change title in short codeI deleted the hello world post and it finally used the page’s proper title in the filename for the pdf. I was using a completely new page and the title was from the default “hello world” post created on install. Bug maybe? In any case, my problem seems to be fixed.
- This reply was modified 8 years, 8 months ago by Will.
Forum: Hacks
In reply to: Remove "insert into button" in media uploader for custom post typesSorry, one more correction
function get_current_post_type_13247() { if (get_post_type()) $post_type = get_post_type(); else $post_type = ''; return $post_type; } add_action('admin_head', 'remove_insert_button_13247'); function remove_insert_button_13247() { if('listing' == get_current_post_type_13247()) { echo '<style type="text/css">.media-frame a.button-primary { display: none; }</style>'; } }Forum: Hacks
In reply to: Remove "insert into button" in media uploader for custom post typesI’ve seen this function tried several times with no success, this actually works as of WordPress 3.81.
Forum: Hacks
In reply to: Remove "insert into button" in media uploader for custom post typesget_post_type should work in the admin without the need for a separate query:
That works perfect! Thanks nick, you saved me a lot of time.
Corrected function for removing insert into post button in media uploader via admin:
function get_current_post_type_13247() { if (get_post_type()) $post_type = get_post_type(); else $post_type = ''; return $post_type; } add_action('admin_head', 'remove_insert_button_13247'); function remove_insert_button_13247() { if('listing' === get_post_type()) { echo '<style type="text/css">.media-frame a.button-primary { display: none; }</style>'; } }Forum: Hacks
In reply to: Remove "insert into button" in media uploader for custom post typesDid you try just get_post_type? Did that not work?
Sorry, should have stated I’m working withing the wp-admin. I’ll try a query today. Looking for a simpler way though.
Forum: Plugins
In reply to: Plugin ideas, ecommerce buy back or trade in programNo, Sorry Dormie. I had to write one from scratch.
Magic Members fix
Can go in your theme's function.php file. // get rid of offending js when not in direct use, ie this conflict is from the MM plugin's js for jquery validation function _dereg_it() { global $pagenow; if ($pagenow == 'edit' || $pagenow == 'post') { wp_deregister_script( 'mgm-jquery-validate' ); } } add_action( 'admin_init', '_dereg_it' );Forum: Plugins
In reply to: [Front-End Users] [Plugin: Front-End Users] Can't change stylem.mordi,
line 129 of front-end-users/lib/front_end_users.php Find this statement: $css_url = $this->plugin_url.'css/feu.css'; change to: $css_url = plugins_url( 'css/feu.css' , dirname(__FILE__) ); hope it helps.