Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Hi and Merry Christmas. I’m trying to figure out how I can input this php code into a users profile. They are post from a Q&A plugin but they are not post ie. post or pages.. Since I don’t let users post posts or pages this would be awesome to have some kind of integration with the Q&A plugin I do use.
global $wp_query;
if( $wp_query->query_vars[‘post_type’] != ‘dwqa-question’ ) {
$query = array(
‘post_type’ => ‘dwqa-question’,
‘posts_per_page’ => $wp_query->query_vars[‘posts_per_page’],
‘author_name’ => $wp_query->query_vars[‘author_name’]
);
query_posts( $query );
}
I know this asking a lot but can you tell me how and where to put it. If it can even be done. God knows I spent the last two days trying to figure it out. Thanks in advance..
You must be logged in to reply to this topic.