nickd

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: CSV Import problems #67716

    nickd
    Expired Member
    Post count: 4

    Hi Charlie,

    Just done this myself so here might be able to help with the csv getting messed up.

    The csv must be delimited by quotes and commas so you need to replace any commas in your descriptions with , (to stop them messing up the csv on import) then use a wordpress MYSQL search and replace plugin to change them back after import (because html entities are not decoded on the map popups).

    in reply to: Prepending place page titles #67686

    nickd
    Expired Member
    Post count: 4

    NVM, I figured it out, unescaped ampersands in page title.. Doh!

    in reply to: Prepending place page titles #67685

    nickd
    Expired Member
    Post count: 4

    Ps if you click “view all” on the “latest places” homepage sidebar, you will see which listings are not affected, since their titles don’t have “Reviews For”

    in reply to: Exclude selected tabs from detail page (if empty) #67593

    nickd
    Expired Member
    Post count: 4

    Hi Jkirker, if you are still looking for an answer to changing the default tab, you can do it by removing the current default tab:

    $new_tab_array[‘post_profile’][‘is_active_tab’]=”; //remove old default tab

    And registering the new one:

    $new_tab_array[‘reviews’][‘is_active_tab’]=’1′; //add new default tab

    So merged with Paolo’s code above, it looks like this:

    // here u can modify this array, u can create a completely new one too.
    if(isset($tab_array[‘reviews’])){
    $new_tab_array[‘reviews’] = $tab_array[‘reviews’];// set in new array
    $new_tab_array[‘reviews’][‘is_active_tab’]=’1′; //add new default tab
    unset($tab_array[‘reviews’]);//unset in old one
    }

    if(isset($tab_array[‘post_profile’])){
    $new_tab_array[‘post_profile’] = $tab_array[‘post_profile’]; // set in new array
    $new_tab_array[‘post_profile’][‘is_active_tab’]=”; //remove old default tab
    unset($tab_array[‘post_profile’]);//unset in old one
    }

Viewing 4 posts - 1 through 4 (of 4 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount