Skip to:
Content
Pages
Categories
Search
Top
Bottom

Give users the option of setting post priority? (Low, Medium, High, Urgent)

  • @chjcoughlan

    Participant

    Hi there I am not sure if this has been asked before but seems like something that would be really useful. I want to give users the option of choosing a priority for their new post.

    How can I do this?

    Thank you

    Chris

Viewing 7 replies - 1 through 7 (of 7 total)
  • @robkk

    Moderator

    In what scenarios would this be useful??

    Are you talking about a support status??

    If it is not for a topic supports status, this could be custom development.

    @chjcoughlan

    Participant

    Yes for support ticket status. I’ve looked at some of the support forum plugins but they don’t offer this. Seems relatively simple to me…
    Maybe tags could be utilised as a set dropdown option?

    @robkk

    Moderator

    It is possible to add custom statuses with this plugin.

    https://wordpress.org/plugins/buddy-bbpress-support-topic/

    Here is an example gist file.

    https://gist.github.com/imath/9e69b8139ff6f7a4120a

    Here is example for Urgent.

    function your_custom_status( $allstatus = array() ) {
    	$allstatus['topic-working-on-it'] = array(
    		'sb-caption'   => __( 'Urgent', 'buddy-bbpress-support-topic' ),
    		'value'        => 3,
    		'prefix-title' => __( '[Urgent] ', 'buddy-bbpress-support-topic' ),
    		'admin_class'  => 'urgent',
    		'dashicon'     => array( 'class' => 'bpbbpst-dashicons-warning', 'content' => '"\f534"' ),
    	);
    	return $allstatus;
    }
    add_filter( 'bpbbpst_get_support_status', 'your_custom_status', 10, 1 );

    @chjcoughlan

    Participant

    Great. thanks for this.

    I tried adding the code to my functions.php file but it didnt work. Do I need to do something special with it?

    @chjcoughlan

    Participant

    Sorry figured it out 🙂

    @chjcoughlan

    Participant

    Nope its still not showing an option when I go to write a new post….

    @chjcoughlan

    Participant

    Just to clarify I want the user to be able to set the status on the front end when they are posting a new topic.
    That code worked but only lets me do it from the back end

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar