Widgets display using widget logic

4.63K viewsGeneral
0

I’m using my theme’s default page for Anspress base page (NOT full width). And i’m trying to display Question Stats widget using Widget Logic.

But i fail. I’m using Custom Post Types Single Questions and Single Answers. Nothing is shown. Only if i add Single Pages works but then it shows the widget in all Anspress and i don’t want that.

Am i missing something ? Any ideas ?

0

@Cagliostro, there are “is_question()” and some other non-default functions that could help you.

I don’t know where to find them other than in source code, Rahul mentions “docs”, but I found no docs.

0

As you know AnsPress is using a single page to render everything, so you need to override individual AnsPress page template and manually add widget position.

Actually i found a way using some widget conditional plugin, filtering widgets by URL and works nice.