will_pigeon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: worried about updating WordPress to latest versionok, thank you.
well I guess there’s only one way to find out if it will work or not!
if I take a back-up of the server then I can always undo my attempts right?
Forum: Fixing WordPress
In reply to: worried about updating WordPress to latest versionHi,
Thank you for the replies. It was a theme I purchased from Themeforest, it is no longer available and the support forum is no more.
I’m nervous because I invested a lot of time into my website. I’m not an expert but I enjoyed learning and I made little fixes, modifications, SEO improvements, even adding custom made plugins. I can’t even remember all the little tweaks I’ve made!
If I take a back-up I guess it’s a fairly easy thing to do to restore to the old version of the site?
What are the benefits of upgrading?
Do I need to upgrade?
Thank you
Hi,
I’m wondering if anyone can help with the questions in this topic? Thoughts? Advice? Is this topic not interesting? All feedback appreciated.
Thank you
Will
Hi,
Does anyone have any thoughts on this?
WordPress generates pages dynamically. This is what the google webmaster guidelines say regarding parameter handling:
Dynamic parameters (for example, session IDs, source, or language) in your URLs can result in many different URLs all pointing to essentially the same content. For example, http://www.example.com/dresses?sid=12395923 might point to the same content as http://www.example.com/dresses. You can specify whether you want Google to ignore up to 15 specific parameters in your URL. This can result in more efficient crawling and fewer duplicate URLs, while helping to ensure that the information you need is preserved. (Note: While Google takes suggestions into account, we don’t guarantee that we’ll follow them in every case.)
Thank you
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titlere-posted Parameter Handling post with a new title and link Duplicate Pages; Best Parameter Handling in Google Webmaster for WordPress Site?
Please share your knowledge if you can help with the two questions above or any of the questions in the Parameter Handling post.
Thank you
re-posted with different title Duplicate Pages; Best Parameter Handling in Google Webmaster for WordPress Site?
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleOk I’ve marked this topic as resolved but I still have a couple of loose ends:
1) Even after setting a Posts Page, why are the “show ’em all” post lists still created?
They have urls http://www.myblog.com/page/1/ to http://www.myblog.com/page/4/ which are distinct from the page I set as my Posts page http://www.myblog.com/pageslug/page/1/ to http://www.myblog.com/pageslug/page/4/ However the content is exactly the same, both using index.php.
2) why the following code does not seem to work for index.php?
<h1><?php if ( function_exists('get_custom_field_value') ) { get_custom_field_value('h1', true);} ?></h1>-
Progress Made:
- Canonicalization – I discovered this and am now using it
- Parameter handling – which also seems like a good idea, in fact I have started a topic on how best to use Parameter Handling
Any advice on either of the loose ends appreciated.
Thank you
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleOk some more info, it seems that the urls with question marks are Query Strings possibly used for tracking?
trying to find info on page_ids…
Thanks
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titlemore unwanted urls:
/?page_id=dacnfvefcwlekffg directs to Posts Page
/?page directs to Front Page
/?ds directs to Front Page
/?cd directs to Front Page
/?cs directs to Front PageWhat are all these urls? what’s creating them?
Thanks
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleOk I found an answer to 1) Posts Page using index.php
Esmi says “That is the default behaviour when you have a static Home page. Your designated Posts page uses the index.php template file.”So the new template I made for showing all posts, I have renamed index.php. (actually there wasn’t that much difference between the old index.php and my template for showing all posts).
One thing I have noticed is that the code below is not working now the file is index.php:
<h1><?php if ( function_exists('get_custom_field_value') ) { get_custom_field_value('h1', true);} ?></h1>seems odd that it should not work now that it is index.php but I’m sure there’s a reason!Anyway I just get rid of the code and type in the title I want.
I haven’t found an answer to 2) yet… and I’ve also noticed other unwanted pages being created with urls http://www.myblog.com/page/1/?page_id=dacnfvefcwlekffg to http://www.myblog.com/page/4/?page_id=dacnfvefcwlekffg
Thanks
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleHi Esmi,
Thank you again for the reply.
I have created a new page template specifically for showing all posts, and created a “main Post” page selecting this new template. Yes you are correct, I don’t want to show my main Post page in the navigation menu.
In my 2.8.5 version of WordPress I don’t have an option of Appearance/Menus. Under Appearance my options are; Themes, Widgets, Editor, Add New Themes, My-Theme Options.
I added the exclude= function to wp_list_pages in my header.php after reading this forum message so it now reads:
<?php wp_list_pages('title_li=&exclude=1817'); ?>1817 being the specific ID for my new page.I also read another post that suggested it isn’t a good idea to exclude pages this way as it will be lost when upgrading. Is this true?
I also found a plugin but I haven’t used it. But perhaps this is the best option?
Having created my new page to show all my posts and successfully excluded it from the navigation menu, I set it as my Post page in Settings > Reading.
I notice two bits of strange behaviour now:
1) whatever page is set as the Post page in Settings > Reading the index.php overrides the custom page template set for that page. It doesn’t matter which of my pages I set, this happens.
2) the “show ’em all” post lists are still created. They have urls http://www.myblog.com/page/1/ to http://www.myblog.com/page/4/ which are distinct from the page I set as my Post page http://www.myblog.com/pageslug/page/1/ to http://www.myblog.com/pageslug/page/4/ However the content is exactly the same, both using index.php.
Doesn’t this seem odd?
I think it is probably best I don’t have a Post page set if it is only going to duplicate content?
Thank you
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleFantastic reply!
Thank you, slowly, slowly the penny is beginning to drop 🙂
Firstly success in setting the custom title in header.php 🙂
I used is_home, my front page is a static page (with its own template). Reading your reply and going over the explanation of is_home() and is_front_page() I now understand the difference between the two and what is going on with my site.
In Settings > Reading > Front page displays’ is set to “A static page”, and Front page is set to my custom “Home” page. The Posts page is not set and shows – Select –
As my posts are split between my Blog and Portfolio, I could not decide which to set and so left it blank.
The problem I was having in trying understanding what is going on, is that there isn’t (it seems) a specific request that creates this page of posts. As in a specific request such as show Portfolio posts, or Blog posts, or a Tag posts – I understand how they are created.
This page of all my posts (or main blog page) is created, it seems, by WordPress even if I haven’t set a Post page.
Thank you for your help Esmi, I think I have understood everything? perhaps now I should make a decision and set my main blog page!
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleOk so understanding a bit more, I can see that index.php is the last template used if no others are selected. From Page Templates:
“What Template is used to Display a Particular Page?
WordPress will look for several template files in your active Theme. The first one it finds will be used to display any given Page. WordPress will look for files in the following order:1. The Page’s selected “Page Template”
2. page.php
3. index.php”As far as I can tell these dynamically created post lists are the only pages that use index.php. Except you say these aren’t pages but post lists, as the content is created dynamically – list of posts in date order. Perhaps the question is – What Template is used to display post lists?
What I don’t get is how these post lists are just appearing? Sure these four pages of post lists link to each other with the Older/Previous Posts link but what is creating this group of four pages of post lists in the first place?
My posts are either assigned to the Blog or Portfolio, and it is through these categories and tag searches that the posts are accessed. I haven’t created a page that just list all the posts. Why does it exist?
The other thing that is bugging me is why is_page_template(‘index.php’) doesn’t seem to work?
Thoughts appreciated.
Thank you
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleOk I made some progress, I found this in Conditional Tags:
“is_page_template(‘about.php’)
Is Page Template ‘about’ being used? Note that unlike with other conditionals, if you want to specify a particular Page Template, you need to use the filename, such as about.php or my_page_template.php.”So I added this line to my title tag in header.php:
elseif (is_page_template('index.php')) { echo bloginfo('name');}I expected it to work but it doesn’t. Even though it must be using index.php. I’m confused.
Thanks
Will
Forum: Fixing WordPress
In reply to: unwanted pages being created – Page of Posts with no wp_titleThank you again, I found the bit that needed changing, I changed it. Now it works with 10 posts per page and no error. Here’s the code I changed:
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts=5'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>I changed showposts=10.
I also made a change to h1 tag in my index.php. It was previously
<h1><?php if ( function_exists('get_custom_field_value') ){get_custom_field_value('h1', true); } ?></h1>this is the same as the homepage template, which uses a custom field value ‘h1’. I simply changed it to:
<h1>Recent Posts</h1>The final change I want to make is to the title. Is there some conditional function I can use to create a custom title in header.php?
Something similar to is_front_page()?
One niggling thing I am wondering; does it matter that we are changing index.php? I mean it doesn’t seem to be used for anything apart from this dynamically created post list, so I guess it is ok to make all these changes?
Thank you
Will