Matt25
Forum Replies Created
-
Hi, Yes I disabled it to debug, I have now re-enabled and disabled the CDN plugin So you should be able to see it now.
Many thanks
Matt
There is a video of the loading for me first on chrome then Firefox at the link below:
https://drive.google.com/file/d/1V8mpd_c9g9U6vLuIA3eJrcshLMmf4roD/view?usp=sharing
You will see it’s running pretty slow on first load, occasionally it was faster but that was about average for me, I don’t have superfast internet but decent and all other websites load fine.
One thing I have noticed is that the videos that should play when hovered seem to be loading in which I don’t think they did before. The video tag is set to only preload metadata not the vid. Does either plugin effect that and make them all load in on page load?
Thanks
- This reply was modified 10 months, 3 weeks ago by Matt25.
OK thanlks for the reponse, It definatly seems a lot slower since using cloudflare for the images, they are not blurry or aything, just loading in slowely when its not cached in the browser. Home page doesnt seem to bad but the pages with image tiles on such as the “Our Work” page.
I have been trying at different times of day and different browsers and its still loading the images section by section as if I have terrible internet.
Any testing you can do to see whats going on would be appreciated
Many thanks
Hello Kush, Thanks for the reply.
OK thats good to know, if its just being flagged up but is actually better then thats great i’ll leave it.
I have been looking over the past couple of days and I tried your test it actually seemed a bit slower with Optimole but it was certainly slow. I think it is slower with the Super Cache for cloudflare plugin maybe, is there any incompatibility with that?
The site owner is paritluar about high quality images but I am trying to make it run as fast as possible with that in mind and have set the quality level in optimole fairly high
Thanks
Forum: Fixing WordPress
In reply to: where does get_term_link() go to?Thanks
Forum: Fixing WordPress
In reply to: where does get_term_link() go to?Yes I checked the Codex example, all seems fine to me.
Here is the main section of code from the custom page that links the custom taxonomy:
$args1 = array( 'taxonomy' => 'representedartist', // Registered tax name 'hide_empty' => false ); ?> <?php $artists = get_terms( 'representedartist', $args1 ); ?> <?php foreach ($artists as $artist) { ?> <section class="artist"> <?php $artistName = $artist->name; $artistID = $artist->term_id; ?> <?php $term_link = get_term_link($artist); echo $term_link;?> <a class="nostyle" href="<?php echo $term_link; ?>"><h2 class="artistName"><?php echo $artistName; ?></h2></a> <img src="<?php echo z_taxonomy_image_url($artist->term_id); ?>" width="400px" /> <p class="artistBio"><?php echo $artist->description; ?></p>
[Moderator Note: No bumping, thank you.]
Forum: Fixing WordPress
In reply to: Users posts not showing up on user pageSolved, Just added my custom post type to WP_Query ??
Forum: Fixing WordPress
In reply to: Users posts not showing up on user pageI have found that custom post types don’t show in queries automaticly thanks to https://designpx.com/tutorials/custom-post-types-author-archive/
I have added the ‘$query->is_page_template’ part to try and get it to show on the page template, I am not sure if this is right or not but it is not working.
function custom_post_author_archive($query) { if ($query->is_author || $query->is_page_template ) $query->set( 'post_type', array('musicp', '3dill', 'post') ); remove_action( 'pre_get_posts', 'custom_post_author_archive' ); } add_action('pre_get_posts', 'custom_post_author_archive');
Just to clarify and simplify. I have a page which fetches all users of a certain role and then displays their posts(which are custom post types). When I add a post that is a custom post type it does not display as part of the users posts, nor does it show in the post count on the users table.
Any help would be much appreciated.
Matt
Forum: Fixing WordPress
In reply to: Users posts not showing up on user pageThanks for the reply. I am not using any member plugins.
I have been changing some things and it seems it is only when I post into a custom post type that it doesn’t show as a post. When I post a standard post it works fine.Is there something I missed when setting up the custom post types?
register_post_type( 'musicp', array( 'labels' => array( 'name' => __( 'Music' ), 'singular_name' => __( 'Music' ) ), 'taxonomies' => array('category'), 'public' => true, 'has_archive' => true, 'supports' => array( 'title', 'author','editor', 'thumbnail', 'custom-fields' ) ) );
Thanks,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postThanks very much for the help, it seemed to have permanently slipped my mind about having to use https:// to get to an external site which was obviously stopping it. I have now put it into my code so you can’t not have it,
Cheers for the help,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postI have contacted my host but then I went and checked my local version of the site and it happens on that aswell, so it can’t be the host can it?
Thanks, I really appreciate the help,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postYes I know, I tried deleting it but it appeared again for some reason.
I have just tested and it seams any link i put into the template file does the exact same thing and has the site url put infront of it.
Cheers,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postI don’t know much about .htaccess but this is all I have in mine:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
and I can’t find any others. I have and it echos nothing outside of the loop so it can’t be already being used.
Cheers,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postI have tried that but its still doing it, I just can’t work out why wordpress would be inserting stuff into a hard coded url.
Cheers,
MattForum: Fixing WordPress
In reply to: How to upload image on publishing of a custom postThanks, I have now got it to work. I do now have another problem though
I need to make the image a link to the website of the bike but for some reason instead of going to Trek.co.uk it goes to https://wordpress.digital-spoon.co.uk/www.trek.co.uk
again I can’t work out why though, this is my code$loop = new WP_Query(array('post_type' => 'Bikes', 'posts_per_page' => 10)); while ( $loop->have_posts() ) : $loop->the_post(); $custom = get_post_custom($post->ID); $bike_url = $custom["bike_url"][0]; $bike_img = $custom["bike_img"][0]; $bike_price = $custom['bike_price'][0]; ?> <div id="bike"> <h1 id="bike_id"><?php the_title(); ?></h1> <a id="bike_img" href="<?php echo $bike_url ?>"><img alt="<?php echo $bike_url ?>" height="169px" width="192px" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/<?php echo $bike_img ?>" /></a> <?php the_content(); echo $bike_price; echo $bike_url; ?>
Thanks,
Matt