Does the latest beta include the ability to upload a cover image / featured image

5.89K viewsGeneral
1

I’ve downloaded the beta and in the notes it mentions cover image, how do I enable this?

0

You can modify “question CPT arguments” in post_type.php

path:  anspress-question-answer\includes\post_types.php

about line 69

$args   = array(
			'label' => __( 'question', 'anspress-question-answer' ),
			'description' => __( 'Question', 'anspress-question-answer' ),
			'labels' => $labels,
			'supports' => array(
				'title',
				'editor',
				'author',
				'thumbnail', //add this thumbnail
				'comments',
				'trackbacks',
				'revisions',
				'custom-fields',
				'buddypress-activity',
			),

 

and you can upload thumbnail at wp-admin new question page.

0

Can someone help me please?

Simply copy this code to you theme functions.php

0

Add this filter:

https://gist.github.com/rahularyan/c86ad0dc10ad79a48ec1

Now you can add featured image in post edit page in wp-admin. You need to add

the_post_thumbnail();

in question.php

Sry can you please give complete absolute path in which question.php there are many question.php in anspress-master