Forum Replies Created

Viewing 15 replies - 16 through 30 (of 50 total)
  • The term you’re referring to is geo targeting.

    There’s a couple things you can do, recreate your site on a subdomain, or have a country postfix on your url.

    au.domain.com vs domain.com/au/ respectively.

    Either way you need to make sure that Google and other search engines understand what you’re doing otherwise you’ll be hit with duplicate content penalties.

    Here’s some reading and plugins that will help:

    It seems there’s very few free alternatives unfortunately.

    sorry updated my post with a link you can use.

    Not sure that post is the best suggestion as call to that file will simply cause errors, yes it will fix the problem, but only temporarily.

    I suggest something a little less extreme, and something that won’t be broken the next time WordPress updates and recreates the file you deleted.

    how to disable trackbacks

    The problem is existing posts/pages don’t get updated when you select to not have trackbacks. The above link will fix that.

    Forum: Fixing WordPress
    In reply to: Login Error

    also try to just type your domain into the browser followed by: https://yoursite.com/wp-admin
    That should redirect you to the correct login screen

    Forum: Fixing WordPress
    In reply to: Login Error

    when I try to log it it will not let me log in.

    It’s saying there’s a password error or what?

    You need to be more specific.

    Start by clearing your browser cache

    Then go to the url and try again.

    Other tips:

    • Don’t get confused in the database export/import. just using default settings is fine. One or two mouse clicks to export everything and the same to import everything to the new database.
    • If you had permalinks turned on the original domain you might need to delete the .htaccess and go into settings -> permalinks and click the save button so the .htaccess file is recreated.

    because you just want to test the website I still recommend creating a new database rather than using and potentially stuffing up the original database.

    edit: I would create a subdomain and have the site there rather than messing about with 2 installations in the same domain. It makes your life easier.

    Just create https://test.yourdomain.com and install the wordpress backup on that. Making sure to edit the wp-config file to reflect the new database and website = test.yourdomain.com

    Follow that guide, if you find it confusing basically you are doing 2 steps.

    1. copy the entire wordpress folder with all files.
    2. go into phpmyadmin and export the database.

    Then you just need to

    1. create a new/separate database if you are making this “look the same” but with different content.
    2. You need to copy the files to the correct location. (rename folder to new location)
    3. In the wp-config.php file you need to enter the correct database and passoword etc.

    and bingo you’re done.

    jmerr, there’s something wrong with your installation. “Error establishing database connection”.

    in regards to the plugin for radio buttons, you’d need to code that from scratch more than likely.

    That depends on whether or not you’re using a child theme or base theme.

    Typically functions.php however once the wp-core is next updated you loose the work you have done in that file. So it’s best to have your own functions file you can add tweaks to that doesn’t get overridden when WordPress updates. I think there should be a file called “extras.php” or “tweaks.php” which you can find in the ‘inc’ folder.

    If you are using a child theme then simply creating a “functions.php” file in your child theme folder will allow you to use custom functions without them getting overridden by the parent themes. I believe this is correct, you will need to research how to call this correctly. But hopefully someone else can clarify if this is right and how to do it.

    Alternately, and probably the better option, if you follow the guide over at WPBeginner: how-to create a site specific plugin

    You can just create your own plugin to add all these snippets and bits and pieces you find lying around the web.

    function functionName() {
    	<HTML> <here>
    	return ;
    }
    add_shortcode( 'shortCodeName', 'functionName' );

    edit; note the additional “add_shortcode();” call that I missed in earlier posts, required for adding the function to the shortcode API

    Oh there’s a handy link to shortcode generator at the bottom of that page:
    Shortcode Generator

    function myShortCode() {
    	ob_start();
    	?> <HTML> <here> ... <?PHP
    	return ob_get_clean();
    }

    is the basic function you perhaps should look at doing.

    However if you are familiar with php, like PVWD suggested above then editing the ‘editor page’ to include 2 radio buttons for ‘broken’ and ‘works’ would also be a good idea and decide on a default value.

    or I think it’s just

    function myShortCode() {
    	<HTML> <here>
    	return ;
    }

    for short html inserts.

    Yeah I think shortcodes would be the best for clients. They are pretty simple and involve only having to remember [shortcode1][shortcode2] rather than how to enter media and place it into the post. Which isn’t too hard… but if they have trouble with it perhaps shortcode would be better.

    Shortcode API

    If you still have trouble after reading that and need more of an explanation I suggest youtube, there’s tons of videos about how to create your own shortcode. Remember this only replaces the shortcode with actual code. So if you just go into a post that already includes the images and click on the text editor rather than visual editor you can see the HTML code you need to place in the shortcode function.

    it will be something like <img src="https://example.org/image.jpg" align="right" />

    I know it’s probably bad practise to recommend commercial plugins here, but this is what I use:

    Askimet (free) – block spam
    Bullet Proof Security (free) – blocks malicious hack attempts and “known” bots. You WILL want to research how to install this properly and include the tweaks from the forums.
    Better WP Security (free) – I use this to change my author ID and database prefix on new blogs, I then disable and delete the plugin.

    Spyder Spanker (paid classic $49 + pro $49) – blocks spiders and IP’s you blacklist. It allows you to block most bots and just allow Google/Bing/Yahoo

    TBH it’s not that great a plugin (and the developer is a bit of a dic IMO), you could do this if you just research how to write .htaccess. However I’m pretty lazy and the pro version of this allows you to auto-update all other installations you have as well. If people still fake Googlebot User Agent they are able to get in (assuming their not on a country block list).

    I went from getting over 1000-2000 spam comments on a blog down to about 10 per day, additionally all whois, SEO analytics bots are now mostly blocked so competitors have a hard time analysing your site and getting data about your meta and back-links. It saves on bandwidth that’s for sure.

Viewing 15 replies - 16 through 30 (of 50 total)