Reputation Activity
-
It will be an issue with your category template.
What the issue is nobody can tell until you show the page.
But this might be helpful:
https://techtuts.co/wordpress-how-to-do-pagination-on-category-page/
-
GrahamUK33 reacted to fisicx in Sitemap for navigationBut it's working for me:
https://testblog.co.uk/full-sitemap/
This is using your code!
-
GrahamUK33 reacted to fisicx in Sitemap for navigationThe code works. It means something is awry with your functions.php. The error is on line 91.
Can you post/send me the code
-
GrahamUK33 reacted to fisicx in Sitemap for navigationfunction sitemap($atts) should be
function sitemap($atts) { Functions work like this:
$variable = 'something'; echo my_function ($variable); function my_function ($variable) { // do something here with $variable. For example: $variable = 'This is my new ' . $variable; return $variable; } You get a variable and send it when you call the function.
The function does something with the variable and returns it back.
The echo outputs the variable to the page.
-
GrahamUK33 reacted to fisicx in Sitemap for navigationLike this
$sitemap .= '<div class="sitemapsub"><h4><a href="' . get_category_link( $cat ) . '">' . $cat->cat_name . '</a></h4>'; https://developer.wordpress.org/reference/functions/get_category_link/
-
GrahamUK33 reacted to fisicx in Sitemap for navigationExcellent!
You can now be clever and add some shortcode attributes to limit the sitemap to specific categories.
-
GrahamUK33 reacted to fisicx in Sitemap for navigationSorry, missed an echo:
<?php /* Template Name: Sitemap */ get_header(); ?> <div class="wrapper-main"> <div class="wrapper-inner-main"> <article> <?php echo sitemap(); ?> </article> </div> </div> <?php get_footer(); ?> This just calls the sitemap function.
If you want to add content you just need to create a standard page and use the shortcode, you don't need a template.
-
GrahamUK33 reacted to Jack in Sitemap for navigationI've got this working as:
Category
- Sub
-- Post
I'll tidy the code up and post it when I can, although, I'm a little hesitate to, because it's just not a good solution.
The problem I have with doing this stuff in WordPress is that there's no way to do it nicely. In most cases this is going to be a mess, or very slow, because of the amount of data that has to be glued together. I have tried to use arrays where possible to speed things up, but I'm convinced the best way to do this is to ignore the WP query methods and to write an SQL query that correctly models the data you're trying to get out. I'm not amazing at SQL but I'll give it a go.
-
GrahamUK33 reacted to fisicx in Sitemap for navigationGot them working together now: https://testblog.co.uk/sitemap/
Next job is to add some child categories and see if I can get them to work.
-
GrahamUK33 reacted to fisicx in 403 Error when using Google PageSpeedWhy all the complexity? Just remove that line, you don’t need it.
Is it only the homepage causing problems?
-
GrahamUK33 got a reaction from Megan Green in How long does it take to go from junior to senior developer?I should imagine this depends on how talented/skilled you are/become. I wouldn’t even make junior level, they seem to want so many skills.
-
GrahamUK33 reacted to fisicx in Contact FormIt’s possible your host is blocking the php mail function. Might be worth checking.
Another option is to use smtp. There are lots of tutorials on how to do this.
-
GrahamUK33 reacted to BrowserBugs in Contact FormThe reply to header is only required if the reply to is not the same as the sender, e.g. server@somedomain sends mail from someone@hotmail but you want the reply to come back to sales@somedomain and not server@somedomain.
-
GrahamUK33 reacted to fisicx in web servers for videoIf you want a video streaming service you have to hand over personal info. They ask this to verify who you are - this helps to prevent copyright and offensive content issues.
When you publish your site you will have to tell them your personal details as well. You can’t eacape this.
-
GrahamUK33 reacted to fisicx in How does WordPress handle images?All media is stored in the wp_uploads folder.
This folder is split into upload dates (unless you disable this in the settings).
When an image is uploaded an thumbnail set is created for use in different scenarios. There is a really good explanation here: https://premium.wpmudev.org/blog/wordpress-image-sizes/
You can also create your own image sizes: https://developer.wordpress.org/reference/functions/add_image_size/
For example on one theme I built I need 600 x 600 images for a grid. I added the filter, regenerated all my thumbnails and now had a new feature image option to choose: https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
-
GrahamUK33 reacted to fisicx in What is your design process@naveenkumar - you missed the most important part: content. Without content you can't design a website.
-
GrahamUK33 reacted to fisicx in Problem with resizing imagesStop trying to resize the images. Set the container size and let the images fill the container. If the ratio it incorrect they will see the ones that need fixing.
-
GrahamUK33 got a reaction from fisicx in Problem with resizing imagesLooks like I have got the functionality part of it working, it just needs tidying up a bit more through the @media settings.
-
GrahamUK33 got a reaction from MonsterST in Complete newbie, lowest of the low!If you don't want to learn how to use VSCode, you can just use Notepad (within Windows) which will allow you to create basic websites.
-
GrahamUK33 reacted to fisicx in Complete newbie, lowest of the low!VS Code is an HTML editor - the same code you use in Notepad. Big advantage is all the automation and validation VS gives you.
-
GrahamUK33 got a reaction from Munch in I'll pay you US$ 1000 to redesign a single page website to meI’m surprised this post hasn’t been removed as spam yet. 🤔
-
GrahamUK33 reacted to fisicx in Inherited Website Need Speed HelpIs this the new Star Wars way to code?
-
GrahamUK33 got a reaction from Dezvolta in Please rate my websiteIt looks clean and uncluttered, I like it. 👍
-
No the clicks / traffic has no bearing on ranking, search engines are not interested, in simple terms traffic data is just one metric for you to use in evaluating a website alongside search terms, referrals etc. Pointlessly dumping fake data into the mix will only cause confusion when calculating what's working for you and what's not.
The madness is there are loads of articles on how to remove fake / ghost traffic from GA, see Moz as an example.
-
GrahamUK33 got a reaction from RowanOne in Which website do you like more?Its the same advert as before, but for Indian food this time!
The picture of the little girl is eating a kebab, which is not Indian food!