Reuben
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Link problemIt’s nothing with permalinks, its the HTML. You are using relative urls.
You are using:
<a href="/home-improvement-articles/black-mold-what-you-need-to-know-1278629.html">https://www.articlesbase.com/home-improvement-articles/black-mold-what-you-need-to-know-1278629.html</a>
The correct way
<a href="https://www.articlebase.com/home-improvement-articles/black-mold-what-you-need-to-know-1278629.html">https://www.articlesbase.com/home-improvement-articles/black-mold-what-you-need-to-know-1278629.html</a>
Forum: Fixing WordPress
In reply to: I can't find a way to speed the loading timeStill loads fine here…and in woorank load time is 0.57 sec.
Check from other computers.
Forum: Fixing WordPress
In reply to: wp_deregister_script mysteryso I deregistered the script so that plugins added later will use the Google version of jQuery and not WP’s.
For this you gotta register Google’s version of jQuery else it won’t work.
Forum: Hacks
In reply to: Custom Post Type Rewrite Confussiontry this
add_action('save_post', 'change_slug', 10, 2 ); function change_slug( $id, $post = false ){ global $wpdb; if( 'product' == $post->post_type ){ $custom_slug = get_post_meta( $id, 'serial', true ); $custom_slug .= "-". get_post_meta( $id, 'model_name', true ); $wpdb->update( $wpdb->posts, array( 'post_name' => $custom_slug ), array( 'ID' => $post->ID )); return $id; } return $id; }
Just don’t know if slashes would work, so use dashes instead. But, you can try slashes.
Forum: Fixing WordPress
In reply to: wp_deregister_script mysteryumm…I’m confused.. Do you want jQuery on front end? if so you don’t need wp_derigster_script since you are not using wp_enqueue_script and yes you include that in header.php of the theme you are using.
Forum: Fixing WordPress
In reply to: Add Option to AdminForum: Fixing WordPress
In reply to: wp_deregister_script mysteryYou mean like this? or something else?
<?php function jtest(){ echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>'; } add_action( 'admin_head', 'jtest' ); ?>
note: the previous method is a good practice.
Forum: Fixing WordPress
In reply to: wp_deregister_script mysteryIf you want to use Google’s version of jQuery then you must deregister the jQuery included with WP and register the Google’s version of jQuery.
<?php function my_functions_init_booktrib() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'); } add_action('init', 'my_functions_init_booktrib'); ?>
Forum: Fixing WordPress
In reply to: Comments: Reply to "get_comment_author" help :)<?php $author_name = get_comment_author(); comment_reply_link(array_merge( $args, array('reply_text' => __( sprintf('Reply to %s', $author_name),'TheStyle'),'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
Forum: Fixing WordPress
In reply to: Readers can edit my pagesI’ve also noticed that people have gone 0n my blog and put in their own ad
Are you sure they are not comments??
Forum: Fixing WordPress
In reply to: email not foundForum: Fixing WordPress
In reply to: I need help please, 404 NOT FOUNDin webmaster tool
Google? if yes, it also tells where the page is linked from and remove that link from that page.
Forum: Fixing WordPress
In reply to: I can't find a way to speed the loading timeThe link you gave loads fine here…..maybe it’s your Internet connection.
Forum: Fixing WordPress
In reply to: add ajax content to page?If you are using jQuery for ajax, then you should also include jQuery javascript files.
Forum: Fixing WordPress
In reply to: enqueue script issueThis will work…
function add_scripts() { if( !is_admin(){ wp_register_script('superfish', get_bloginfo('template_directory').'/js/superfish.js', array('jquery')); wp_register_script('slideshow', get_bloginfo('template_directory').'/js/jquery.cycle.lite.min.js', array('jquery')); wp_enqueue_script('my_scripts', get_bloginfo('template_directory').'/js/js.js', array('jquery', 'superfish', 'slideshow')); } } add_action('init', 'add_scripts');