Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.9.3, cn_action_entry_before
- This topic has 4 replies, 2 voices, and was last updated 12 years, 9 months ago by
Eric.
-
AuthorPosts
-
10/22/2013 at 9:18 am #271983
Eric
GuestWe’ve purchased Excerpt Plus for our website. My client has requested that I add a paragraph above the Connections list. However, they do not want it to appear above the individual bio pages.
The only thing I’ve figured out so far is to add it to the page, above the shortcode. But, this makes it appear everywhere.
I’ve been unsuccessful with trying to figure out how to add it to the Excerpt Plus PHP files.
Do you know of a way that I can do this?
Thank you!
Eric10/22/2013 at 12:16 pm #272012Steven Zahm
Keymaster@ Eric
The only way to do this that I can think of accomplishing this is adding a custom action. Something like this should do the trick:
function cn_custom_list_text() { if ( ! get_query_var( 'cn-entry-slug' ) { echo 'My custom text.'; } } add_action( 'cn_action_entry_before', 'cn_custom_list_text', -10 );I guess just drop it in the theme’s
functions.phpfile or better yet if you have a utility plugin that you drop random functions in, that would be better.Let me know how you make out.
10/22/2013 at 8:52 pm #272113Eric
GuestThis worked great. I just had to make minor tweaks to it. Thanks for the prompt reply and great solution. You have a really nice product here.
The tweaks I made were closing the parenthesis here:
( ! get_query_var( ‘cn-entry-slug’ ))
and changing this line to list instead of entry:
add_action( ‘cn_action_list_before’, ‘cn_custom_list_text’, -10 );
10/23/2013 at 11:21 am #272151Steven Zahm
Keymaster@ Eric
Looks good. Sorry about that closing paren. Typing in Sublime spoils me by not having to worry about my closing it because it does it for me.
If you have a moment, I would truly appreciate a review as they really do make a difference. Thanks in advance for your time!
http://wordpress.org/support/view/plugin-reviews/connections10/24/2013 at 8:17 pm #272277Eric
GuestAll set. Thanks Steven!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
