nhiggs
Forum Replies Created
-
Forum: Networking WordPress
In reply to: "registration has been disabled" – no access to wp-adminOh, just a quick edition. The second network setup page did say something like it recommends my changing my site url to something like mysite.com rather than https://www.mysite.com. I ignored this as I didn’t know how or what it meant and it was only a recommendation.
Forum: Fixing WordPress
In reply to: Recommend full site backup pluginsCheers for that. Will take a look.
Forum: Networking WordPress
In reply to: Is MultiSite what I am looking for?Cheers for the info and links. Will take a look through them tonight.
@andrea_r – It is 2 sites now, but it was only 1 site before. The client could easily decide to expand again at a later date and I don’t want to be caught out again, so it seems sensible for me to learn what I need and do it properly. I am in over my head, but with good tutorials and support on forums like this I’m sure I’ll get there and start offering advice back to others.
Ta’
Forum: Fixing WordPress
In reply to: My site is running SO slowSame here using Win7 and Chrome.
Load time was well within 2 seconds.If you want to speed it up still check these out:
https://wordpressconsultant.net/2011/08/top-3-tricks-to-speed-up-wordpress/
&
https://themeid.com/how-to-speed-up-wordpress-sites/Just from using the wp-config and the htaccess tweak I saved about .5 secs.
https://gtmetrix.com/ is my favourite site for helping me figure out what to speed up. It also keeps a history of page load times so you can track your progress easily.
Forum: Plugins
In reply to: [W3 Total Cache] eCommerce-Plugin & W3 Total Cache not working togetherOdd. I use the Jigoshop e-commerce plugin and after setting up W3 Total Cache, e-mails telling me about an order stopped coming through too (may have stopped them on their side too). One of my testers told my the site seemed quite buggy after the cache was installed to, so I think I may have set it up wrong.
Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyCheers for the offer. It looks like it was something purely down to the plugin. They somehow specify / override what the query was (maybe with filters. Didn’t really understand it) in a separate file and making my tweaks there got it working.
Forum: Fixing WordPress
In reply to: wp_list_categories with each item having a different colourCould you explain that further please? I don’t know JQ yet.
The main issue is selecting an li without directly specifying the classes ‘cat-item-xx’. Setting the colour is the easy bit.
TaForum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyOk, little more work and I have done the following:
global $post; $args = array('numberposts' => 3); $custom_posts = get_posts($args); foreach($custom_posts as $post) : setup_postdata($post); echo 'GOTPOSTS'; endforeach; $first_query = new WP_Query('posts_per_page=3'); while($first_query->have_posts()) : $first_query->the_post(); echo 'WPQUERY'; endwhile; wp_reset_postdata();
Now I would expect one of those to output something, but neither do.
I think there is something fundamentally wrong going on here.I am going to try to see if I can get any help from Jigoshop on this, but I doubt it now they want you to pay for support (and the main reason I went with them was they were free!)
Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyNope. Returned nothing with that.
When I edited it to just a NULL array like:$args = array(); query_posts($args);
I got all the items as you would expect (but I think it proves the query_post with an array worked).
However just making a simple array such as:
$args = array('meta_key' => 'stock'); query_posts($args);
or
$args = array('posts_per_page' => 100); query_posts($args);
both give no results.
Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyCheers for the support.
If my kids let me I’ll test that out tonight.Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyHmmm… this is very odd.
In my main loop if I put the following code:
echo 'instock='.get_post_meta($post->ID, 'stock', true).'. ';
I get output alongside my items specifying their stock levels (only 0 or 1 at the mo). Checking these values they are all correct.
However if I add the following before the loop:
query_posts('meta_key=stock&meta_compare=>=&meta_value=0&posts_per_page=100');
I get no posts shown at all. I have tried multiple variants of this query but without any luck.
Any idea why this is failing even though the get_post_meta proves the data is there?
Just in case it is useful, this is what my loop looks like now:
// The new line that breaks everything when it is supposed to show // posts with >= 0 stock (should be 1, but 0 for testing) query_posts('meta_key=stock&meta_compare=>=&meta_value=0&posts_per_page=100'); if (have_posts()) : while (have_posts()) : the_post(); $_product = &new jigoshop_product( $post->ID ); // The line that proves the meta data is there echo 'instock='.get_post_meta($post->ID, 'stock', true); endwhile; endif;
Cheers.
Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyI had quick go at this in-between the kids waking throughout the night and I couldn’t get it working. It seemed to select a load of correct posts but also a load of invalid posts. Not quite sure what they were as the data within them seemed completely invalid.
I think what you posted is right as it matches what a lot of searches were bringing up. I think I am doing something else wrong.
Cheers, anyway.
Forum: Fixing WordPress
In reply to: Post Loop to show only posts with meta propertyCheers for that.
I think I see what it’s doing.
I’ll give it a try in a while and post how it goes.