• Resolved joxyzan

    (@joxyzhan)


    Thank you for a plugin that is quite easy to use! Although complex in its workings…

    I managed to set the plugin up quickly on my site, but ran into a problem: I need the “Post format” to be automatically set to “Image”, not “Standard”. Is that something I can achieve with the free version?

    PS. I have set the “Default Post Format” in WordPress “Writing Settings” under to “Image”, but that doesn’t help with USP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help.

    It’s not a built-in feature, but possible w/ the following code:

    function usp_set_post_format($post) {
    	
    	$id = isset($post['id']) ? $post['id'] : null;
    	
    	if ($id) set_post_format($id, 'YOUR_POST_FORMAT');
    	
    }
    add_action('usp_insert_after', 'usp_set_post_format');

    Replace YOUR_POST_FORMAT with the name of the post format that you want to use. This code can be added to your theme functions.php or added via simple custom plugin. Here is a guide that explains more about adding custom code to WordPress. Let me know if any questions.

    Thread Starter joxyzan

    (@joxyzhan)

    Thank you very much Jeff!
    That worked fine! ??</img>

    • This reply was modified 2 years, 2 months ago by joxyzan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Post format” for submitted posts’ is closed to new replies.