Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Add meta to REST API response #10636
    cyclissmo
    Member

    3 years later and this should have been addressed by now. I have to do this same hackery to include piklist fields in my REST endpoints.

    in reply to: Console error #9350
    cyclissmo
    Member

    I am getting the same error:
    Error: Syntax error, unrecognized expression: unsupported pseudo: -webkit-autofill

    For the time being, I just wrapped the offending code in parts/js/admin.js in a try/catch block, and the error is gone. Hopefully this will be taken care of in the next update 🙂

    Piklist 1.0.3, with all other plugins disabled.
    Wordpress 4.9.10
    Using Firefox Quantum 66.0.3 64bit on Windows 10

    in reply to: remove piklist_love #8853
    cyclissmo
    Member

    I use this action sparingly, only for “mission critical” websites. I just plop it into functions.php, outside of any action callback and it works just fine:

    remove_action( 'wp_footer', array( 'piklist_theme', 'piklist_love' ), 1000 );

    And then there is the meta “generator” that also specifies piklist which should be removed as well:

    remove_action('wp_head', array('piklist_theme', 'version_in_header'));

    in reply to: [Bug] non-numeric value encountered in class-piklist.php #8370
    cyclissmo
    Member

    Getting the exact same message.

    Piklist 9.9.12

    cyclissmo
    Member

    Thanks for checking in on it, Steve.

    For now I can just tap into one of the many postmeta filters to re-index the array (assuming that’s what is causing the problem!) I’ll update this post if I discover anything new.

    in reply to: Tabs aren't working and demos won't disable #6838
    cyclissmo
    Member

    Thank you Steve for offering to look over my code. I was able to get Settings Tabs to work 🙂

    What didn’t work was using the setting name for the Page parameter in the comment block.

    To make Settings Tabs work, use the menu_slug value (from the new settings page parameters) for the Page parameter in the Workflow Heading page’s comment block.

    in reply to: Tabs aren't working and demos won't disable #6823
    cyclissmo
    Member

    The tutorial is somewhat ambiguous towards tabs for settings – in fact, it says Workflows are for Posts and Users. I haven’t been able to get tabs for Settings to work in 9.9 either 🙁

    in reply to: How to retrieve custom post status label? #3371
    cyclissmo
    Member

    Solved! I found the answer right after posting:

    get_post_status_object( get_post_status( $post->ID) )

    Which returns something like this:

    stdClass Object ( [label] => CC Authorization [label_count] => Array ( [0] => CC Authorization (%s) [1] => CC Authorization (%s) [singular] => CC Authorization (%s) [plural] => CC Authorization (%s) [context] => [domain] => ) [exclude_from_search] => [_builtin] => [public] => 1 [internal] => [protected] => 1 [private] => [publicly_queryable] => 1 [show_in_admin_status_list] => 1 [show_in_admin_all_list] => 1 [capability_type] => jnl_subscription_txn [hierarchical] => [has_archive] => [show_in_admin_all] => [single_view_cap] => [name] => authorize )

    in reply to: Documentation suggestion for Workflow Tabs #3136
    cyclissmo
    Member

    Don’t forget the native Featured Image/post thumbnail metabox: postimagediv

    in reply to: New Conditional Bug… YAAAY! #2191
    cyclissmo
    Member

    My contribution, possibly related:

    /**
     * Business hours
     */
    piklist('field', array(
    	'type' 		=> 'group',
    	'label'		=> 'Business hours',
    	'add_more'	=> true,
    	'columns'	=> 12,
    	'fields'	=> array(
    		array(
    			'type'		=> 'select',
    			'field' 	=> 'jnl-from',
    			'choices' 	=> array(
    				'Monday' 	=> 'Monday',
    				'Tuesday' 	=> 'Tuesday',
    				'Wednesday' => 'Wednesday',
    				'Thursday' 	=> 'Thursday',
    				'Friday' 	=> 'Friday',
    				'Saturday' 	=> 'Saturday',
    				'Sunday' 	=> 'Sunday'
    			),
    			'attributes'	=> array(
    				'style' => 'float:left;'
    			)
    		),
    		array(
    			'type'		=> 'html',
    			'field'		=> '',
    			'value'		=> 'Through',
    			'attributes'	=> array('style' => 'float:left;margin:0 12px;'),
    		),
    		array(
    			'type'		=> 'select',
    			'field' 	=> 'jnl-to',
    			'choices' 	=> array(
    				'Monday' 	=> 'Monday',
    				'Tuesday' 	=> 'Tuesday',
    				'Wednesday' => 'Wednesday',
    				'Thursday' 	=> 'Thursday',
    				'Friday' 	=> 'Friday',
    				'Saturday' 	=> 'Saturday',
    				'Sunday' 	=> 'Sunday'
    			),
    		),
    		
    		// Hours sub-group
    		array(
    			'type'		=> 'group',
    			'field'		=> 'jnl-hours',
    			'add_more'	=> true,
    			'columns'	=> 12,
    			'fields'	=> array(
    				array(
    					'type'			=> 'select',
    					'field'			=> 'jnl-from-time-hour',
    					'choices'		=> array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'),
    					'attributes' 	=> array(
    						'style' => 'float:left;'
    					),
    				),
    				array(
    					'type'			=> 'select',
    					'field'			=> 'jnl-from-time-minutes',
    					'choices' 		=> array(':00 AM', ':30 AM', ':00 PM', ':30 PM'),
    					'attributes' 	=> array(
    						'style' => 'float:left;'
    					),
    				),
    				array(
    					'type'			=> 'html',
    					'field'			=> '',
    					'value'			=> 'To',
    					'attributes'	=> array(
    						'style' => 'float:left;margin:0 12px;'
    					)
    				),
    				array(
    					'type'			=> 'select',
    					'field'			=> 'jnl-to-time-hour',
    					'choices'		=> array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'),
    					'attributes' 	=> array(
    						'style' => 'float:left;'
    					),
    				),
    				array(
    					'type'			=> 'select',
    					'field'			=> 'jnl-to-time-minutes',
    					'choices' 		=> array(':00 AM', ':30 AM', ':00 PM', ':30 PM'),
    					'attributes' 	=> array(
    						'style' => 'float:left;'
    					),
    				),
    			) 
    		),
    		
    		
    	)
    ));

    Screen capture

    in reply to: Unit tests #2138
    cyclissmo
    Member

    In case anyone else is interested in unit testing their custom plugins and don’t know how to set up their environment, this tutorial got me on the right track:

    http://code.tutsplus.com/articles/the-beginners-guide-to-unit-testing-building-a-testable-plugin–wp-25741

    in reply to: New user having trouble with Docs #2072
    cyclissmo
    Member

    Thank you sir. I hope my post didn’t come across as a complaint. Piklist is a fantastic piece of work, and what I’ve learned about it so far has changed my perception of WordPress being a viable development platform to offer my clients now. I’m sure if I worked with WordPress more frequently I would have less trouble understanding how piklist works.

Viewing 12 posts - 1 through 12 (of 12 total)