Title: Two questions
Last modified: August 21, 2016

---

# Two questions

 *  ResolvedPlugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/)
 * I have followed your instructions for creating a new index.php file and, with
   a few CSS tweaks, now have the plugin nestled in nicely to my theme. It looks
   good!
 * But there are two things I haven’t been able to figure out:
 * 1. How can I remove all mention of points? I don’t mean how to set the points
   to zero; I mean not have them mentioned anywhere on the front-end.
 * 2. Is there a way to add some text to the main forum page, like “Ask a new question
   here” with an appropriate hyperlink to to the Ask page?
 * Thanks very much!
 * [https://wordpress.org/plugins/anspress/](https://wordpress.org/plugins/anspress/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Rahul Aryan](https://wordpress.org/support/users/nerdaryan/)
 * (@nerdaryan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718900)
 * Good to know,
 * 1. You cannot do it now easily, currently there is not much options of this point
   thing. but this will be an important part of my plugin when a first stable version
   will out.
 * 2. `<a href="<?php get_permalink(ap_opt('ask_page'))?>">Ask</a>`
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718907)
 * Thank you! Number 2 worked perfectly, but now I have the problem of working out
   how to hide that link on the Ask page itself! At the moment, I can’t get CSS 
   to oblige — just keep trying, I guess!
 *  Plugin Author [Rahul Aryan](https://wordpress.org/support/users/nerdaryan/)
 * (@nerdaryan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718908)
 * Sorry I did not understand ! which link to hide ?
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718910)
 * Well, I used your code, which inserts a hyperlink at the bottom of the forum 
   pages, just as I wanted.
 * But, of course, there is one page where I don’t want it showing, namely on the
   Ask page itself (because it would just be linking back to the same page).
 *  Plugin Author [Rahul Aryan](https://wordpress.org/support/users/nerdaryan/)
 * (@nerdaryan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718914)
 * Simply do this:
 *     ```
       <?php
       $ask_page_id = ap_opt('ask_page');
       if (!is_page($ask_page_id)
       echo ' <a href="'.get_permalink($ask_page_id).'">Ask</a>';
       ```
   
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718917)
 * Thanks. I have tried what you pasted here, but it just brings up a white screen.
   Is there, perhaps, something missing from the pasted code?
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718925)
 * OK, I’ve got it:
 *     ```
       <?php $ask_page_id = ap_opt('ask_page');  ?>
       <?php if (!is_page($ask_page_id)) :  ?>
       <div class="forum-ask">
       <a href="'.get_permalink($ask_page_id).'">Ask</a></div>
       <?php endif; ?>
       ```
   
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/two-questions-20/#post-4718926)
 * No, sorry, that was my cache fooling me!
 * The code is right except that the hyperlink doesn’t work, so I’ve just used html
   for the href. That definitely works!
 *  Plugin Contributor [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/two-questions-20/#post-4719069)
 * I’ve solved the points issue too now.
 * I simply replaced
    `ap_user_display_name_point()` with `the_author_meta('display_name')`
   in the relevant php templates.
 * Perfect! Thanks for a great plugin!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Two questions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anspress_fde1d3.svg)
 * [AnsPress - Question and answer plugin](https://wordpress.org/plugins/anspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anspress/)
 * [Active Topics](https://wordpress.org/support/plugin/anspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anspress/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/two-questions-20/#post-4719069)
 * Status: resolved