WordPress.org

Ready to get started?Download WordPress

Forums

Question and Answer Forum
show only the titles of the questions (5 posts)

  1. nikosgr
    Member
    Posted 2 years ago #

    Hi
    which file should i modify so in "view all questions" the questions body will not appear? (only the rest will appear as: title, ballon with number of answers etc)

    thanks

    http://wordpress.org/extend/plugins/question-and-answer-forum/

  2. trevorpythag
    Member
    Plugin Author

    Posted 2 years ago #

    Do you mean when you click the "view all questions" link on the front-end of your site. This is actually controlled by your theme. By default it will use archive.php but if you create archive-question.php it will use this instead. I'd suggest copying the archive.php as a starting point but making any changes you need.

    Hope this helps

  3. nikosgr
    Member
    Posted 2 years ago #

    very helpful like always! thanks a lot! best regards from Greece :)

  4. diaperdeals
    Member
    Posted 2 years ago #

    Hello,

    I need to change or remove the "View All Questions" link itself because for some reason the categories go to the right place but the View All Questions link is adding a directory (I didn't do the install on the site I'm putting Q&A on and I think it was installed into /wp/ but there are redirects to the root ... no idea why. seems to cause problems occasionally with permalinks).

    anyway. I need to change this link:
    <a href='http://www.mysite.com/wp?post_type=question'>View All Questions</a></span></div>
    to this one:
    <a href='http://www.mysite.com/?post_type=question'>View All Questions</a></span></div>

    So I just need to remove two letters wp out of that link, which then works properly. What do I need to change to make this happen? Thanks!

    PS I did create a duplicate of archive.php at archive-questions.php so if that's where I need to modify something the file is ready to go.

  5. trevorpythag
    Member
    Plugin Author

    Posted 2 years ago #

    hi sorry about the delay.

    You will need to edit the plugin itself to do this which means you will need to repeat the edits after each upgrade :(

    Go to querys.php and delete line 132

    Dave

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic