WordPress.org

Forums

Connections Business Directory
[resolved] Card Duplicates with Multiple Shortcodes on Page (4 posts)

  1. Evan
    Member
    Posted 1 year ago #

    Hello and thanks in advance for the help.

    I am trying to place 2 shortcodes on a page, one for each category (I need headers above each category). It works just fine, but when I click on a name of an entry to get their profile card, it appears twice, under each heading (one for each shortcode on the page). Is there a way to only get it to appear once or to customize the virtual page it links to?

    Thanks!

    http://wordpress.org/extend/plugins/connections/

  2. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ Evan

    Apologies for the delay in my reply. I've given this some thought since I read this yesterday and I can not think of a workaround that doesn't involve having to create a custom theme page template. If that is something you know how to do, basically you need to check for the query var cn-name if is set, then only display one shortcode and if it doesn't display both.

  3. Evan
    Member
    Posted 1 year ago #

    Thanks for the reply! I can give it a shot, as I know some basic PHP. What file would I be editing to do that?

    Thanks again.

  4. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ Evan

    You won't be editing an already existing file, you'll have to create s theme template page. I'd star by duplicating the page.php file and then rename it to connections.php and then add the page template name to the top of the file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.