Forum Replies Created

Viewing 15 replies - 31 through 45 (of 85 total)
  • Thread Starter morris373

    (@morris373)

    Hi
    I have eventually found this piece of code and have adapted it to my Taxonomy’s custom fields:

    $clergy_title = pods_field('clergy', get_the_ID(), 'clergy_title', $single=true);

    I then echo’d it out and it doesn’t work, so where am I going wrong?

    Thanks

    Morris

    Thread Starter morris373

    (@morris373)

    Hi
    I changed Orderby to another field i.e. burial_date as in the Burial Register is in that order and not Grave Number.

    I have also managed to create an archive file based on the Clergy who performed the ceremony and that now brings back all the related Deceased people who were buried by that Reverend or Clergy.

    It would be great to have a form on a page, so that my Co Researcher can help me add all the burials but I can’t add the Clergy Taxonomy.

    Can the Clergy Taxonomy be added to the same form?

    Morris

    Thread Starter morris373

    (@morris373)

    Hi
    I created a Grave 20 first and added 2 more deceased people and selected Grave 20 and then went back to Grave 20 and the deceased people were alredy connected, without even touching it. That’s great.

    I would like to order the Graves by the grave_number so my shortcode I had before didn’t work as I had:

    [pods name="deceased" orderby"grave_number ASC" template="Burial Register Template II"]

    But it doesn’t like orderby, if I take it out, the Burial Register page works.

    You have no documentation on how to use ‘Orderby’ so I am lost.

    Thanks

    Morris

    Thread Starter morris373

    (@morris373)

    Hi Jory Hogeveen

    The Grave Number relates to a separate map from the Burial Register and that is only the same data that will be linked.

    Sorry but I don’t understand what you mean by Singular relationship and Multiple relationship, is that in the Advanced Field Options? If so Deceased is set to Single Select and Grave is set to Multi Select.

    I did use the page title as the Grave Number so I have changed that part in the template.

    So am I right in thinking that once the Deceased people have been set up, I then add the names of the deceased people to the Graves?

    Before when I played with relationships I had a working Burial Register and now there’s nothing on the page, so do you have to do anything different when using relationships in the blog template?

    Thanks

    Colin

    Thread Starter morris373

    (@morris373)

    Hi Steve
    Thanks for your reply.

    I will contact the Theme developer again. I have looked at it again and it is left to right for most of the blog posts and then every now and again it will revert back to right to left.

    Any how, since it’s almost right I’ll leave it with them to sort out.

    Thanks

    Morris

    Thread Starter morris373

    (@morris373)

    Hi
    I use Microsoft’s WebMatrix to create localhost Websites as it’s easier to use but unfortunately it is very old.

    However, I did update the PHP version to 7.1 but the MySql Server was out of date.

    I tried Local by Flywheel and this plugin when activated created the necessary tables needed for this plugin, which it wasn’t doing before, even from a migrated install.

    So my problem is now resolved and I will use Flywheel from now on.

    Thanks Dan for your help.

    Morris

    Thread Starter morris373

    (@morris373)

    Hi Dan
    Email sent.

    No it’s not part of a multisite.

    Morris

    Thread Starter morris373

    (@morris373)

    Hi Dan the Man
    I have enabled WordPress Debug and refreshed the browser window. It gives me this message below:

    [Table 'wordpress706.wp_bingmappro_maps' doesn't exist]
    SELECT id, map_start_lat, map_start_long, map_type, map_zoom, compact_nav, disable_mousewheel, disable_zoom, map_shortcode, map_width, map_height, map_width_type, map_height_type, html_class, styling_enabled, toggle_fullscreen, look_at_location as lock_zoom, cluster FROM wp_bingmappro_maps WHERE map_active = 1;

    Deactivated the plugin and no messages.

    Deleted Plugin and no messages.

    Installed Bing Map Pro and no messages.

    Activated the plugin and loads of errors. I will email the errors to you as it might be too much on here?

    What’s your email address as I can’t see one on your website?

    Cheers for replying.

    Morris

    • This reply was modified 4 years, 2 months ago by morris373.
    Thread Starter morris373

    (@morris373)

    Hi
    I migrated the website to another subdomain, the tables prefix is now a1_ as it’s part of the same database and it works, so it looks like you can migrate the website to localhost but the plugin I was having problems with, it’s tables aren’t created or can be used.

    That will do.

    Morris

    Thread Starter morris373

    (@morris373)

    Hi
    I found a plugin that changed the prefix back to wp_ and the tables for that plugin are still not exported and imported.

    I needed to have a back up of the website on Localhost and it isn’t working.

    I then tried to set the other plugin back up and now that won’t work as it should.

    Cheers

    Morris

    Thread Starter morris373

    (@morris373)

    Trying to set it up again on Localhost and can’t save a map….does it work on Localhost? Instructions do not say.

    No tables generated when I deactivate and re-activate it again….why?

    How can we resolve these issues?

    Morris

    Thread Starter morris373

    (@morris373)

    Hi
    My demo website is part of a sub domain and when I installed WordPress it has prefixed the tables to 49_ and I never set that.

    So I need to find a way of changing them back to wp_ and hopefully that does mess my main website up.

    However, the same website I migrated is now on localhost and the tables are now prefixed to wp_ but the other plugins tables aren’t there…

    I have contacted the plugin developer of the other plugin 2 days ago and nothing recieved so far.

    Thanks for your help and pointing me in the right direction.

    Morris

    • This reply was modified 4 years, 2 months ago by morris373.

    Hi
    Sorry I made a mistake $textlable should have been $textlabel, see below:

    <?php 
    $textlabel = pll__('varietes');
    echo '<div class="related"><h4 class="related-portfolio">' . $textlabel . '</h4>';
    ?>

    This is only the code you need and you don’t need the_query bit.

    Hi
    I have set up two custom fields, called description_en and description_cy, these fields are assigned to my Custom Post Type so that I can add the English version and the Welsh version on the same page, and I have registered one label in functions.php as Description.

    In String Translations, I would have Description in English and I would then have to get the translated word for Description. In my case the Welsh word for Description is ‘Disgrifiad’.

    In my one page template I would need to retrieve the values for the custom fields and the label for Description as a variable.

    My code I am using is to test to see if the HTML page is for English or my other language Welsh, so I am only going to be using one template here:

    $description = pll__('Description'); /* Description Label */
                    
     if(get_locale() == 'en_GB') :
          if(get_field('description_en')) {
    	  echo '<p><strong>' . $description . ':</strong><br> ' . get_field('description_en') . '</p>';
          } else {
              echo '<p><strong>' . $description . ':</strong> Not Entered</p>';
          }
          endif;
                            
          if(get_locale() == 'cy') :
              if(get_field('description_cy')) {
    	     echo '<p><strong>' . $description . ':</strong><br> ' . get_field('description_cy') . '</p>';
              } else {
                 echo '<p><strong>' . $description . ':</strong> Ddim yn hysbys</p>';
              } ?>
              endif;

    In my 1 page template I have tested to see if my page is in English or Welsh and then whatever page I am on, I should get the correct translation.

    If I am using 2 templates then I wouldn’t need to do the check for ‘get_locale()’, I would just insert the code as is but any labels or text would then have to be translated.

    English Page Template

    if(get_field('description_en')) {
        echo '<p><strong>' . $description . ':</strong><br> ' . get_field('description_en') . '</p>';
     } else {
         echo '<p><strong>' . $description . ':</strong> Not Known</p>';
      }

    Welsh Page Template

    if(get_field('description_cy')) {
        echo '<p><strong>' . $description . ':</strong><br> ' . get_field('description_cy') . '</p>';
     } else {
        echo '<p><strong>' . $description . ':</strong> Ddim yn hysbys</p>';
       } 

    I hope this makes sense…

    Morris

    Thread Starter morris373

    (@morris373)

    Hi Chouby
    Thank you for explaining this issue and showing the support ticket.

    The plugin I am using to check for accessibilty issues is giving me the wrong information in the backend so I should post something on their support page as well.

    If everything has been tested in English or the main language set for that document then really I should ignore any warnings that appear in the translated pages in the backend.

    It’s also telling me on the translated pages that my links are opening in a new tab and I haven’t told the User but it has been set but in the other language which this plugin doesn’t understand.

    Cheers for your help

    Morris

Viewing 15 replies - 31 through 45 (of 85 total)