CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Duplicate text in wordpress page with CiviCRM profile
Pages: [1]

Author Topic: Duplicate text in wordpress page with CiviCRM profile  (Read 1644 times)

phdeviate

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
  • CiviCRM version: CiviCRM 4.4.3
  • CMS version: WordPress
  • MySQL version: 5
  • PHP version: 3.3.10.4
Duplicate text in wordpress page with CiviCRM profile
January 22, 2014, 09:59:38 am
I have read the profiles documentation here: http://book.civicrm.org/user/current/organising-your-data/profiles/ but I can't see anywhere where anyone else is having this trouble. On the two pages that I'm invoking profiles (both times by using the shortcodes from within wordpress, as the other system doesn't seem to work for me, see my other recent post to this forum here: http://forum.civicrm.org/index.php/topic,31300.0.html ) the text that I am using before the profile *repeats* after the profile. Here are my two examples:
http://phdeviate.com/phdlist/
http://phdeviate.com/talent/

Does anyone know what might be causing this, or better yet, how to stop it?

Thank you!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Duplicate text in wordpress page with CiviCRM profile
January 23, 2014, 09:42:57 am
Not sure what's happening here - asked one of my WP 'expert' friends to take a look when they have a few minutes. Meantime - just to clarify - the text that's repeating is in the WP post and not part of the CiviCRM profile settings ("Pre Help") - is that correct? Might be helpful to screenshot the 'edit post' page.
Protect your investment in CiviCRM by  becoming a Member!

phdeviate

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
  • CiviCRM version: CiviCRM 4.4.3
  • CMS version: WordPress
  • MySQL version: 5
  • PHP version: 3.3.10.4
Re: Duplicate text in wordpress page with CiviCRM profile
January 23, 2014, 10:00:22 am
Yes, you're completely correct, it's in the WP page. I have attached a screenshot. Thank you for your reply!!

(Edited to correct "post" to "page")

Tadpole Collective

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
    • Tadpole Collective
  • CiviCRM version: Latest
  • CMS version: latest
Re: Duplicate text in wordpress page with CiviCRM profile
January 23, 2014, 10:06:35 am
Hi,

I think this can be resolved by adding a pages page in the CiviCRM Settings for CMS Integration. For that page page, you should select a default page format. The error now is that its using index.php or home.php to create the pages, as opposed to page.php. I think.

So you'll have to create a page in WP that will be assigned to be the default page used for Civi pages and then add that in Administer > System Settings > CMS > Database integration.

Is that what you mean? Let me know.

phdeviate

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
  • CiviCRM version: CiviCRM 4.4.3
  • CMS version: WordPress
  • MySQL version: 5
  • PHP version: 3.3.10.4
Re: Duplicate text in wordpress page with CiviCRM profile
January 23, 2014, 11:35:37 am
Alas, yes and no. I have done that. I created a page called "civicrm" based off the simplest template, I put close-to dummy text there, no formatting, nothing special, making it a perfect page to build the civi front-end pages off off, but it *still* bases things on the home page. Look at how *wackily* that comes out on this page: http://phdeviate.com/?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=14 The CiviCRM profiles form is there, as it should be, but it is sandwiched awkwardly between the slider and the "featured pages" section of my home page. All this could be avoided if Civi were actually basing pages on the page it's pointed at. I just tried adding the trailing slash to the database setting, but that didn't help either.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Duplicate text in wordpress page with CiviCRM profile
January 23, 2014, 02:29:19 pm

u might want to add some debugging statements here:

CRM/Utils/System/WordPress.php, function url()

u can ping us on irc and we can try and help

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

phdeviate

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
  • CiviCRM version: CiviCRM 4.4.3
  • CMS version: WordPress
  • MySQL version: 5
  • PHP version: 3.3.10.4
Re: Duplicate text in wordpress page with CiviCRM profile
January 24, 2014, 03:03:28 pm
I did discover that the HTML Form Snippet does NOT generate the right stuff, but by modifying it was able to ameliorate one problem while causing another.

Page using modified HTML snippet instead of short code: http://phdeviate.com/talent/
Page using shortcode: http://phdeviate.com/phdlist/

Neither of these are public-ready yet!

Any thoughts are appreciated

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Duplicate text in wordpress page with CiviCRM profile

This forum was archived on 2017-11-26.