latro666
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 404 landsYou could try a plugin like WordFence:
https://en-gb.wordpress.org/plugins/wordfence/That has various settings in it that allows you to limit bots/spam etc.
Forum: Fixing WordPress
In reply to: Setting up an Email (SMTP)Hmm
Sounds like its a settings issue. Try setting up a sendgrid free account (if you dont have one it takes a few mins to setup and is really useful for this sort of stuff):
https://sendgrid.com/free/SMTP will be:
smtp.sendgrid.net
port 25No enc
Use SMTP authIf that works then you know its an issue with your SMTP settings and not the site.
Forum: Fixing WordPress
In reply to: How to add pagination in category-news page ?Try going to:
Settings > Permalinks > Hit Save ChangesThen try again.
Forum: Fixing WordPress
In reply to: Creating a home page mockupMaybe do this:
Copy the homepage template file e.g. home.phpCall it tmp-home.php and add this at the top:
/* Template Name: Preview Home */Upload it
Create a new page in WP and assign it that template on the right and publish the view it. This should (as long as you do not have a lot of complicated custom fields and logic) show your new homepage separately from the atual homepage.For a bit of added security/hide from search you could publish it as private.
Alternatively you could copy and paste the entire theme and call it something else e.g. mythemev2, remember to change style.css
Upload that and then use this plugin to preview your new theme while the site uses the old one:
https://en-gb.wordpress.org/plugins/theme-preview/obviously make your changed to homepage in the second v2 theme.
Forum: Fixing WordPress
In reply to: Setting up an Email (SMTP)Have you tried using this plugin:
https://wordpress.org/plugins/wp-mail-smtp/I’v had success with it using it as a means to have custom SMTP details in wordpress
You could install a plugin like this on the new WP instance:
https://en-gb.wordpress.org/plugins/rss-post-importer/Then run the feed from your current site into it.
e.g.
http://newsite.com/wp-admin/feed-importer
V
http://www.oldsite.com/feedYou might need to make some adjustments to get your old site to output all posts to the RSS feed.
Forum: Fixing WordPress
In reply to: How to add pagination in category-news page ?Can try one i wrote for google style page numbering, its pretty hacky and requires url structure like /page/5/ but feel free to give it a go:
/*page numbering function*/ function pf_pagenumbers($offset){ global $wp_query; /*get page uri*/ $uri = explode('/', $_SERVER['REQUEST_URI']); $brk = 0; foreach($uri as $k => $v){ if($v == 'page'){ $brk = 1; } if(substr($v, 0, 1) == '?'){ $urlqs = $v; } if($v != '' && $brk != 1){ $url .= '/' . $v; } } if(substr($url, 0, 2) == '/?'){ $url = ''; } /*--------------------*/ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $totalpages = $wp_query->max_num_pages; $poffset = $offset; //number of pages to show $rtn .= '<li><a href="">Page ' . $paged . ' of ' . $totalpages . '</a></li>'; if($paged > 1){ $rtn .= '<li><a href="'. $url . '/page/' . ($paged - 1) . '/' . $urlqs .'">< Prev</a></li>'; } if ($poffset % 2 == 0) { $pt = ($poffset / 2); $ps = $paged - ($pt-1); $pe = $paged + $pt; }else{ $pt = (($poffset - 1) / 2); $ps = $paged - $pt; $pe = $paged + $pt; } if($pe > $totalpages){ $ps = $ps - ($pe - $totalpages); $pe = $totalpages; } if($pe < $poffset){ $ps = 1; $pe = $poffset; } while($lcnt < $totalpages){ $lcnt++; if($lcnt >= $ps && $lcnt <= $pe){ $rtn .= '<li><a href="'. $url . '/page/'. $lcnt . '/' . $urlqs .'">'. $lcnt . '</a></li>'; } } if($paged < $totalpages){ $rtn .= '<li><a href="'. $url . '/page/'. ($paged + 1) . '/' . $urlqs .'">Next ></a></li>'; } if($totalpages == 0){ $rtn = ''; } return $rtn; }Call it like this:
<ul> <?php echo(pf_pagenumbers(5)); ?> </ul>Where the number is the number of pages you want to show as options e.g.
Page 5 of 44 < Prev 3 4 5 6 7 Next >Forum: Fixing WordPress
In reply to: Disable comment for old and new posts.If you want a bit of a nuclear option and have access to the functions.php file in the theme you can try this:
Forum: Plugins
In reply to: [Advanced Editor Tools] Hyperlink change link text but keep WP dialogueSo they have :D, feels like they listened to me personally hehe (probably not the case!).
Forum: Plugins
In reply to: [Custom Post Type UI] Update to 9.0 made all custom taxonomy disappearUnbelievable! the new update has de-linked every taxonomy again! after i spent hours updating them.
We have auto update of plugins in WP, gonna have to move away from the custom post ui plugin dude sorry it was great as a time saver but thinking about encoding post types manually from now on cant have this keep happening.
Unsure why you felt you needed to change it really… did the job fine. I think it’d be a better idea to roll back to the stable version that worked and push that out as i can see a lot of confidence already being lost.
Had reservations about using a plugin to drive such a fundamental part of sites to begin with, guess should of listened to our gut.
Forum: Hacks
In reply to: WordPress's poor ability to edit link text in TinyMCEwow, you are right in FF and IE you can highlight and replace. In chrome it will remove the link!
hmm this might be one for the TinyMCE devs
Forum: Hacks
In reply to: WordPress's poor ability to edit link text in TinyMCEHi
if you highlight the link any type the link is removed… so i’m unsure what you are referring to there?
http://www.tinymce.com/tryit/full.php
Highlight a link for first to last char and type, the link is removed.
I do know how to add new buttons :D, telling a client though to click a separate button to change the link text is a bit well… confusing.
Forum: Hacks
In reply to: post-title list and category filterIf you don’t mind the page reloading then this is pretty easy if you have an understanding of WP_query and a bit of php?
Just:
$args = array('posts_per_page' => -1, 'post_type' => 'page'); if($taxquery != ''){ $args['tax_query'] = $taxquery; } $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); the_title(); endwhile;Will list out all ya posts
Add something like this at the top above that:
if($_GET['catfilt'] != ''){ $taxquery = array('tax_query' => array(array('taxonomy' => 'whatevertaxonomy','field' => 'slug','terms' => $_GET['catfilt']))); //print_r($_POST); }else{ $taxquery = ''; }Then you just have another bit of code list out the terms:
$terms = get_terms( 'whatevertaxonomy' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ echo '<ul>'; foreach ( $terms as $term ) { echo '<li>' . $term->name . '</li>'; } echo '</ul>'; }In the
<li>bit just link to the same pageecho '</li> <li><a>ID . '>' . $term->name . '</a></li> ';Thats the idea anyway sorry its a bit of a rushed example 😀
Forum: Hacks
In reply to: How to add custom field to wordpress register formBit of google foo any good?
https://wordpress.org/support/topic/edit-registration-form?replies=5Forum: Plugins
In reply to: [Custom Post Type UI] Updated and now 404Might of been FF caching the page without the /store bit in.
Might of been related to the plugin update custom post type url’s seem to of been randomly effected. One fix to try if is a problem anywhere else is to go to the permalinks section in the WP admin and just re-save what is there.