pates
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Simple code to insert custom field into shortcode. What is wrong?Fantastic! I’m not sure of the logic to this code but it’s working great. Thank you very much Ian.
Forum: Fixing WordPress
In reply to: Simple code to insert custom field into shortcode. What is wrong?Thanks Ian, I’m assuming you meant this?
global $post; function companylink( $atts, $content = null ) { $link = <strong>echo </strong>get_post_meta($post->ID, 'companylink', true); return $link; } add_shortcode('companylink', 'companylink');
Unfortunately the code is still broken. It appears to be the ‘echo’ that is breaking it.
Forum: Fixing WordPress
In reply to: id="page" height issue?I know – I found out the very very hard way.
This problem with the #page div popped up out of nowhere (hadn’t made any changes to affect this); figured I needed to update the theme. 15 hours of design lost… hopefully I can grab a backup and then I’ll create a new theme.
:S !!
Forum: Themes and Templates
In reply to: Remove WordPress Responsive DesignTaking this max-width out was a seriously positive step. I think websites are perfectly navigable at full size and don’t need the width adjusted for mobiles and tablets. I’m sure a highly experienced coder would be able to make something pretty spectacular but for the average webmaster this just gets in the way.
Thanks again for clearing this up and teaching me a thing or two along the way ??
Forum: Themes and Templates
In reply to: Remove WordPress Responsive DesignThanks Voodoo,
That’s sorted everything – brilliant!!
Forum: Themes and Templates
In reply to: Remove WordPress Responsive DesignI’ve coded my site and styled it from the twentyeleven theme. How do I scrap the responsive browser size stuff – it’s just wrecking the site on anything mobile :S
Joost is really good at updating people and responding comments when there are problems. I’m surprised this one hasn’t been cleaned up quicker but let’s not forget he provides his awesome work at absolutely no cost.
Daniel, get an old version of WordPress SEO, strip the category base again and Google will then reindex your old URLs and your traffic should come back to exactly where it was.
Not working for me and no apparent fix since I updated to 1.2.5. Just spent a long old time writing lengthy redirects to avoid putting 80% through a damaging reindexing process.
Great plugin, first issue I’ve ever experienced – will simply hold back on update other sites.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Sitemap Blocked By Robots.txtI’m receiving the same error in WMT. It’s even saying that the warning is for this value (as well as others)
Sitemap: /page-sitemap.xml
Value: https://www.domain.co.uk/Slightly worrying but the /robots.txt is just blocking the standard /wp-admin and /wp-includes folders. Little confused here as the sitemaps that have been submitted are also 100% clean.
I appreciate I haven’t given much clarity on this.
Great work ??
Candy, I think you will find that the majority of small to medium sized websites are just going to notify their users of cookies rather than give them the option to disable cookies.
There has been so much negative press about cookies (retargeted advertising and affiliate marketing) that users will just switch them off without understanding the importance of them to 99% of webmasters. If users are given the option, every website in the EU will be unable to interpret their traffic and improve their website!
It is an abomination to Internet commerce and simple web hobbyists but unfortunately it’s also important that we all comply ??
Forum: Fixing WordPress
In reply to: Category page that lists pages with a certain page templateOk, I’m completely lost at how I’m supposed to do this. My PHP ability is pretty minimal so a lot of this is way over my head.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'reviews', 'paged' => $paged ); query_posts($args); ?>
This is in my page, but now what? This is what I am using at the moment which displays all the articles very well, it just doesn’t paginate:
<?php $args = array( 'numberposts' => 10, 'category' => 36, 'paged' => get_query_var('paged') ); ?> <?php global $post; //$args = array( 'numberposts' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); $count = 0; foreach( $myposts as $post ) : setup_postdata($post); ?> <?php $countCheck = $count % 2; if ($countCheck == 1){ ?>
Any more help would be very kind!
Forum: Fixing WordPress
In reply to: Category page that lists pages with a certain page templateThanks vtxy, I’ll check it out and let you know!
Forum: Themes and Templates
In reply to: Corporatemag Featured Images BrokenThanks but I would like to tell my theme to simply feature the images I put in my post on the slider.
Anymore ideas?