Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter minimel82

    (@minimel82)

    LOL! Goodness me! How on earth I managed to get in that mess!

    Anyway, thank you for help – you were indeed correct about it being the home and site url being wrong in my general settings. (I never thought to look there as I didn’t install wordpress – our partner company did it for me originally).

    And I don’t even need the rewrite rule in the .htaccess file either, so that’s gone!

    All seems to be working, just a few images URLs to find and replace. Oh look a plugin to do it all for me!

    Thanks aphill70 for pointing out the obvious to me and helping me to fix it!

    Cheers

    Thread Starter minimel82

    (@minimel82)

    I see; so you’re right. Only problem now is I can’t login to the admin panel now. Even after changing back the .htaccess file to how it was originally before I started to make all the changes.

    Feel like I should get the ‘dunce bunny’ today!

    Hi, I came accross this discussion when I was searching about how to fix my site after a DNS switch over from a hosted test site to a live site.

    None of my pages or posts were working (500 error code), but homepage working and admin login working fine.

    I changed the site URL in the Database through phpMyAdmin, and made this change to my .htaccess file and now it all works fine.

    So thanks @ipstenu for your help with the code for the .htaccess file. Worked a treat for me.

    I guess the .htaccess file doesn’t get updated from the intial set up of the WP install, so obviously when you have changes such as a DNS switch over, it will stop working.

    It’s simple to understand now, but anyone new to WP and such might not know this. So hope my contribution helps.

    Thread Starter minimel82

    (@minimel82)

    Jonnyauk – your solution worked a treat! Thank you very much!

    In case anyone else comes across this same situation; here’s my code as it appears in the loop in my category.php:

    <?php if (is_category('tester')) { ?>
    	<h4><a href="<?php the_permalink(); ?>" alt="<?php echo get_post_meta($post->ID, 'alt-title-1', true); ?>" title="<?php echo get_post_meta($post->ID, 'alt-title-1', true); ?>"><?php echo get_post_meta($post->ID, 'alt-title-1', true); ?></a></h4>
    
    	<?php echo get_post_meta($post->ID, 'alt-excerpt-1', true); ?>
    
    	<p>(<a href="<?php the_permalink(); ?>" alt="Read more..." title="Read more..." class="readMore">Read more...</a>)</p>
    
    	<p class="postmetadata">
    									<?php _e('Resource subject:'); ?> <?php the_category(', ') ?> <?php _e('|'); ?> <?php comments_popup_link('No Reviews »', '1 Review »', '% Reviews »'); ?> <?php the_tags(); ?> <?php edit_post_link('Edit this post entry', ' | ', ''); ?>
    	</p>
    
    <?php }else{ ?>
    	<h4><a href="<?php the_permalink(); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
    
    	<?php the_excerpt(); ?>
    
    	<p>(<a href="<?php the_permalink(); ?>" alt="Read more..." title="Read more..." class="readMore">Read more...</a>)</p>
    
    	<p class="postmetadata">
    									<?php _e('Resource subject:'); ?> <?php the_category(', ') ?> <?php _e('|'); ?> <?php comments_popup_link('No Reviews »', '1 Review »', '% Reviews »'); ?> <?php the_tags(); ?> <?php edit_post_link('Edit this post entry', ' | ', ''); ?>
    	</p>
    <?php } ?>

    Cheers, Mel.

    Thread Starter minimel82

    (@minimel82)

    Oh hi Jonnyauk! Thank you so much for your reply! Really do appreciate your help!

    I’ll have a go with your suggestion this afternoon; it seems quite a simple solution from what you say. Though I never thought about, and didn’t realise the power of custom fields.

    I’ve been testing locally with a switch statement; thought about querying the post ID. But your solution seems simpler.

    I’ll let you know how I get on later today!

    Thanks once again! Hope you don’t mind how I came about asking for help.

    I have to say I’m getting a little bit confused about the whole WordPress-Paypal saga.

    I have wordpress installed on my privatly hosted website and I have tested this Paypal issue with some buttons from my work’s website (currently looking to redo the company website and use wordpress so I need to make sure the paypal buttons work fine with no issues at all before I proceed).

    I’m a little suprised to see that by copying the code automatically generated from my paypal buttons and pasting into my post editor using the HTML view seems to work perfectly for me: https://www.melissawood.co.uk/wordpress/freebies/post-11

    Please excuse the messyness of this blog. It’s a personal one which I’m using as a testing ground as well as building it up.

    I have also read somewhere that there is a limit on paypal buttons using wordpress, which is 10 buttons. I have also tested this and found that 16 buttons worked fine as well and was adding all the correct items to the cart.

    I’ve also found somewhere in here that there is a setting in Paypal which you need to switch off for paypal buttons to work within a wordpress platform. The setting of accepting code from non-encrypted buttons has been said it needs to be set to ‘yes’ for the buttons to work. Though in my company’s paypal merchant account I have this set to ‘no’ and the buttons seem to work fine.

    Anyone able to shed any light on this for me, also might help to answer Lindafar’s questions at the same time. It would also be great to get some reassurance from someone else that what I have done is correct and will continue to work fine.

Viewing 6 replies - 1 through 6 (of 6 total)