I am having a problem with permalinks to staic pages, and wp-e commerce.
I have 2 types of content:
1) Pages that are static and use unique templates, published as pages, organized into menus.
2) Posts that are generated by the wp e-commerce plugin, published as posts, organized via wp-ecommerce templates.
Here is the Series of events I am dealing with(I am starting to hate wp e-commerce)
Staic Pages give me a 404 Error
I disable WP E-Commerce
Static pages ALL display the same default homepage template
I update any static page content(just press the update button)
All static pages are showing now.
I make ANY change in the wp dashboard and we're back at step 1.
Can anyone make any sense of this?
According to the Wordpress Documentation,
If you've tried to navigate to a newly created Page and encounter an
error, you likely need to update your Permalink structure. Remember,
each time you add a new static Page to WordPress, new rules must be
generated and updated to .htaccess (WordPress 1.X) or to the internal
rewrites array (WordPress 2.X).
Please also note that it is not advised to start your permalinks with tags like %postname%, %category%, or other text-based tags as it can really decrease performance as you have more posts.
Unfortunately I could not find a way to do this and keep my url decent. I ended up just going with the regular permalink structure. It works, but is not ideal.
Thanks for everyone's input.
Related
When WordPress website Home Page displays the latest posts, the Rank Math SEO Plugin Sitemap contains the Home Page URL (https://website.com/) twice. In "page_sitemap.xml" and "post_sitemap.xml".
I created a static page and blog page as a test, and from settings I selected "Home Page as Homepage" and "Blog Page as Posts Page".
The same thing happened, the Blog Page URL (https://website.com/blog/) duplicated twice in "page_sitemap.xml" and "post_sitemap.xml".
Logically the Page URL must be in "page_sitemap.xml" only.
Why this is happening and If this is wrong, could you please guide me to the best practices to do?
When you see your homepage both at page-sitemap and post-sitemap, that might be happening because you've selected WordPress Dashboard > Settings > Reading > Your homepage displays to your latest posts. The sitemap should have chosen a static page but choosing that option will show the latest posts on that page. So the homepage is both a homepage (included in page-sitemap) and a posts page (included in post-sitemap), and logically that's correct.
But It’s fine, and that shouldn’t cause any SEO issues, as it simply tells Google to crawl the site. But at some point, Google will count the same URL in different sitemap files separately, which could sometimes lead to the number of URLs in your sitemaps being less than the number of URLs counted as being indexed. The same URL in multiple sitemaps is counted separately, which is why you could see something like this.
However, creating a static page for the homepage and a blog page should work.
In your case, this might be happening due to a caching issue. You can try clearing the sitemap cache and excluding the sitemap from caching.
#Steps:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. If the above steps doesn't seem to work, kindly apply the following filter code to your site.
`add_filter( 'rank_math/sitemap/enable_caching', '__return_false');`
Here's how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
i want to convert my html website to the wordpress. But can you please talk me that how i can convert and connect the other pages with the main page???
I'm going to start from the point of view you already have Wordpress and are ready to start.
You can't take your existing HTML website and just add it to WP.
What you need to do is to build your own custom theme, that matches your current HTML files, using the already existing WP templates and files.
Best way is to duplicate an existing theme to play/manipulate so that you don't break WP. The last thing you want to do, having no experience, is to mess with and break the default theme and be unable to get it back again without a full re-install.
RE 'connect the other pages with the main page' WP allows you to have static pages and set them as your home page and/or anywhere else you want. With these pages you can also set up different templates within your theme if you need to.
Wordpress have all this help available here:
Wordpress creating static pages and custom templates
Its not really that simple. You should read about WP theming. Here's the start:
https://codex.wordpress.org/Theme_Development
Check codes from other themes to see how to output basics. Theming has a lot of parts, but to ouput custom html you will need these files:
style.css
functions.php
index.php
single.php
With those you should have an basic blog output with core WP functionality.
We have a custom WordPress theme running on WordPress 3.4.2 and are running into some problems with our Permalink settings and a particular calendar plugin we're using on our website. Our website is somewhat non-traditional in the sense that all of our Posts are located within a section of the website called /news-events/ (e.g. www.domain.com/news-events/).
Currently, we are using the following custom permalink structure: /news-events/%year%/%monthnum%/%postname%/ to match the location of our Posts. We have created about 30 websites from this template using this permalink format without any issues.
However, the calendar plugin (The Events Calendar Pro 2.0.10) we're using on this particular site requires the Permalink structure to be /%postname%/. When the permalink structure is set to anything other than /%postname%/, any calendar events pages return 404 pages. Unfortunately, setting our Permalink structure to /%postname%/ is not a viable option for us as it's imperative for us to keep the /news-events/%year%/%monthnum%/%postname%/.
The Question:
Is it possible to set the overall WordPress Permalinks to /%postname%/ while customizing the Permalink structure for Posts, Archives, and Categories to /news-events/%year%/%monthnum%/%postname%/? Put another way: how can we change the Permalink structure to /news-events/%year%/%monthnum%/%postname%/ ONLY when a Post, Category, or Archive is being viewed?
The following pages provided some useful information, however, it seems we'd need to do the opposite of what's described:
http://shibashake.com/wordpress-theme/custom-post-type-permalinks
http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2
Any and all help is greatly appreciated.
Can you set the permalink structure to %postname%/news-events/%year%/%monthnum% ?
It may possible allow the plugin to grab the first part of the request (Being postname)
I am moving an old Drupal 4 installation to Wordpress 3, and rather than trying to go through the pain of moving the thousands of posts over, my plan is to leave the old site running on a subdomain (old.site.com).
I'm able to set up the wordpress permalinks to look like the URLs the Drupal site's pathauto module was generating, but now I need to create permalinks for all those old posts that don't exist on the new site. For example:
http://site.com/author-name/title-of-post exists on the old Drupal site.
I want to create a permalink in Wordpress with the same URL, then have it forward to http://old.site.com/author-name/title-of-post
This way any existing Google indices that point to the existing post will still work, and (hopefully) we don't lose any Google prominence
What is the best way to do this? Thanks in advance.
Bonus Question: Does anyone actually know how this would affect SEO?
I would add the following plugin:
http://wordpress.org/extend/plugins/redirection/
And then create blank pages or posts in WordPress to get the link structure you want. The plugin adds an option to the post edit screen to set a 301 redirect to your other URL. That should provide the mechanics of what you want to do.
As for SEO, it's suboptimal for the new site since spiders, visitors, and bookmarks will all end up on the old site. I would use the above as a temporary solution and slowly copy/paste the content over or figure out a clever database import to move it over. In the long run, that will be better for you.
I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the customization I built into this I did not expect the blog part to give me trouble! lol Anyone run into this kind of thing?
Thank you.
The way I usually to it is to have standard setting in reading preferences.
Build my front-page in index.php
Build a template for blog posts
Add a page and assign the blog post template
Of course you then have a kind of placeholder page sitting amongst the other pages, don't really like that. But it works.