Title: mbain's Replies | WordPress.org

---

# mbain

  [  ](https://wordpress.org/support/users/markcbain/)

 *   [Profile](https://wordpress.org/support/users/markcbain/)
 *   [Topics Started](https://wordpress.org/support/users/markcbain/topics/)
 *   [Replies Created](https://wordpress.org/support/users/markcbain/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/markcbain/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/markcbain/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/markcbain/engagements/)
 *   [Favorites](https://wordpress.org/support/users/markcbain/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/markcbain/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/markcbain/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GiveWP - Donation Plugin and Fundraising Platform] URGENT FIX 3.17.2 UPDATE Crashed my site](https://wordpress.org/support/topic/urgent-fix-3-17-2-update-crashed-my-site/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/urgent-fix-3-17-2-update-crashed-my-site/#post-18128603)
 * Having the same issue, thanks for the workaround. Please notify when fixed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Author Avatars List/Block] Widget settings unset on save](https://wordpress.org/support/topic/widget-settings-unset-on-save/)
 *  Thread Starter [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [6 years ago](https://wordpress.org/support/topic/widget-settings-unset-on-save/#post-13255090)
 * > Will try to solve ASAP
 * Great! I’ll keep my eyes peeled for an update.
 * > The shortcode should take a user_link value of last_post
 * Setting the `user_link` value in the shortcode to `last_post` changes the link
   on the user’s name. What I would like to do is show an _additional_ link underneath
   the user’s bio, similar to what can be achieved using the widget.
 * As this functionality is already in place in the widget, perhaps it’d be relatively
   easy to extend it to the shortcode?
 * Thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [content errors with https](https://wordpress.org/support/topic/content-errors-with-https/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/content-errors-with-https/#post-12246893)
 * Looking at your site, the problem is that your site is trying to request an insecure
   stylesheet, e.g. it’s trying to download a file from the HTTP address instead
   of the HTTPS, and the browser is preventing this.
 * `Mixed Content: The page at 'https://www.ammylamphotography.com/' was loaded 
   over HTTPS, but requested an insecure stylesheet 'http://www.ammylamphotography.
   com/wp-content/uploads/pp/static/9d844a13-e150-412d-b8d5-d5c8d455ff8e-1575286917.
   css'. This request has been blocked; the content must be served over HTTPS.`
 * Looking at that URL, it looks to me as if you are loading a cached stylesheet.
   Try first clearing the cache (I think it’s the Autoptimize plugin), see if that
   works.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-930/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-930/#post-12246862)
 * Your hosting company should be able to help you reset your database password.
   Usually you can do this yourself via cPanel or whatever panel they use. I don’t
   think you can do it via phpmyadmin.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error](https://wordpress.org/support/topic/fatal-error-3360/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-3360/#post-12246830)
 * Before anything else, make sure you have the latest version of the plugin installed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MultilingualPress] Automatic hreflang tags](https://wordpress.org/support/topic/automatic-hreflang-tags/)
 *  Thread Starter [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/automatic-hreflang-tags/#post-7146892)
 * For anyone interested, here’s how I did it in the end.
 * In `functions.php`,
 *     ```
       function my_hreflang_tags() {
   
           /*
            *   Add hreflang tags to head
            */
   
           // Get the permalink
           $the_old_link = get_permalink();
   
           // Create 2 localized versions of the permalink for use in the hreflang tag
   
           $the_new_link_gb = str_replace( '/gb', '/us', $the_old_link );
           $the_new_link_us = str_replace( '/us', '/gb', $the_old_link );
   
           // Print it out
   
           echo '<!-- Hreflang tags -->';
           echo '<link rel="alternate" hreflang="en-US" href="' . $the_new_link_us . '">';
           echo '<link rel="alternate" hreflang="en-GB" href="' . $the_new_link_gb . '">';
   
       }
       add_action( 'wp_head', 'my_hreflang_tags', 1 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MultilingualPress] Automatic hreflang tags](https://wordpress.org/support/topic/automatic-hreflang-tags/)
 *  Thread Starter [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/automatic-hreflang-tags/#post-7146890)
 * Sorry, I have worked out the issue. I was expecting the hreflang meta to show
   as soon as the plugin was activated, but I see that you have to manually associate
   posts first. Having over 300 posts, I was hoping to avoid manual work!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MultilingualPress] Automatic hreflang tags](https://wordpress.org/support/topic/automatic-hreflang-tags/)
 *  Thread Starter [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/automatic-hreflang-tags/#post-7146829)
 * Thanks for your response, Thorsten. Yes, the theme does call `wp_head()`
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Theme: Arcade Basic] Unable To Change Header Image.](https://wordpress.org/support/topic/theme-arcade-basic-unable-to-change-header-image/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/theme-arcade-basic-unable-to-change-header-image/#post-4948128)
 * The best thing would be to contact the theme developer: [https://themes.bavotasan.com/](https://themes.bavotasan.com/)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Reddle] Making Posts Summary instead of Full Text](https://wordpress.org/support/topic/making-posts-summary-instead-of-full-text/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/making-posts-summary-instead-of-full-text/#post-4948125)
 * You will need to replace `the_content()`with `the_excerpt()`in the relevant template.
   
   The best way of doing this is to create a child theme: [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Posts 2 Posts] One of our favorite plugins](https://wordpress.org/support/topic/one-of-our-favorite-plugins/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/one-of-our-favorite-plugins/#post-7804303)
 * Yeah, I was going to say that too. I think it’ll go alongside ACF.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom Post Type Archive links not working](https://wordpress.org/support/topic/custom-post-type-archive-links-not-working/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-archive-links-not-working/#post-2548395)
 * Assuming you are using 3.1+, have you tried creating “archive-portfolio.php?”
   from archive.php? Displaying custom posts this way allows paging.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excerpts not working on custom posts](https://wordpress.org/support/topic/excerpts-not-working-on-custom-posts-1/)
 *  Thread Starter [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/excerpts-not-working-on-custom-posts-1/#post-2551585)
 * Managed to solve this myself. Just in case anyone else is looking for the solution,
   it’s basically enough to delete the content of the post_excerpt field, and, without
   content, the excerpt will display correctly.
    I ran a “search and replace” via
   mySQL, using this query:
 *     ```
       UPDATE wp_posts SET post_content = REPLACE (
       post_content,
       'Item to replace here',
       'Replacement text here');
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Child theme not referencing images from parent](https://wordpress.org/support/topic/child-theme-not-referencing-images-from-parent/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/child-theme-not-referencing-images-from-parent/#post-2531419)
 * Working for me, too. Try clearing the cache or using private mode on your browser.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Footer Bar](https://wordpress.org/support/topic/footer-bar/)
 *  [mbain](https://wordpress.org/support/users/markcbain/)
 * (@markcbain)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/footer-bar/#post-2530891)
 * You can also use the Chrome browser, which has similar developer tools built-
   in.
    If you have problems with layout in Firefox, you’ll likely have problems
   across all the standards-compliant browsers. Better to start off with a class-
   A browser, and then add whatever additional hacks for IE later.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/markcbain/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/markcbain/replies/page/2/?output_format=md)