MikeChipshop
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Separate block render template for post editor and website frontGood Morning,
I stumbled across this question while looking for something else and even though it is a few months old, it may be worth me saying how I approach this in case it helps others.I use…
<?php if(is_admin()): ?> <!-- Stuff to show in admin --> <?php else: > <!-- front end of site stuff --> <?php endif; ?>
I usually use this if I’m loading in some sort of slider that is easier to manage in edit mode rather than preview mode so I put a message for the client to click across to edit mode.
Hope this helps`
- This reply was modified 3 years, 5 months ago by MikeChipshop.
- This reply was modified 3 years, 5 months ago by MikeChipshop.
Forum: Networking WordPress
In reply to: Fatal error: Call to undefined function ms_subdomain_constants()Obvious really. Been a long day :p
Cheers for your reply it was enough to trigger my memory of the same problem a while back, which indeed was a backup with a dodgy file. Re-upped the core and it’s now all golden.
Muchos thanks!
Forum: Plugins
In reply to: [Special Recent Posts] [Plugin: Special Recent Posts] Broken thumbnail imagesI actually can’t remember off of the top of my head as it was quite a while back.
What i probably did was lock down all the permissions to the recommended WordPress settings. This is an interesting read regarding that matter https://codex.www.ads-software.com/Changing_File_Permissions .
If this doesn’t solve the issue, then let me know here and i’ll see if i can get FTP access to that clients site back, and have a poke around for you.
Forum: Plugins
In reply to: [Special Recent Posts] [Plugin: Special Recent Posts] Broken thumbnail imagesRight. My mistake.
For some reason my clients hosting company decided to set everything to a nice open ‘777’ permissions. Once i dropped this down to a more preferable ‘755’ everything kicked in.Great work fella.
Forum: Plugins
In reply to: [Twit Connect] [Plugin: Twit Connect] Removing Bottom Twitter Login ButtonCheers for the reply, i’m pretty sure the code is inserted right.
My code looks like so…
<div id="comments"> <?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p> </div><!-- #comments --> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ return; endif; ?> <?php // You can start editing here -- including this comment! ?> <ul id="SQ-socialbuttons"> <li><?php if(function_exists('twit_connect')){twit_connect();} ?></li> <li><?php do_shortcode("[fb_login size='large' login_text='Logout' logout_text='Logout']"); ?></li> </ul> <?php if ( have_comments() ) : ?> <h3 id="comments-title"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h3> ...
I can’t spot anything immediately obviously wrong… or am i just being blind? Cheers for the help.