Automatically add more pages on wordpress multisite install - wordpress

I want to make 5 pages with a navigation on wordpress multisite.
That means when a new user registers for a new site, he/she will get a new site with 5 default pages with a navigation menu. Can anyone help?

I found it at last. :)
It is in
wp-admin/includes/upgrade.php
function name
wp_install_defaults();
overwrite this function to generate custom posts and pages on wp install.

Related

Trying to identify why wordpress adds "test-post" to URL of any new pages I create

I have a site using the Horizon theme on wordpress. Permalinks set to /%postname%/.
But every time I create a new page, once I press publish the page refreshes with /test-post/ added to the permalink. e.g. mysite.com/test-post/mypage/
I have no idea where this test-post is being added from.
I have Yeost SEO plugin running, iThemes Security also.
I've checked .htaccess, and wondering what other wp files might be able to alter the path?

Custom wordpress theme template page is not public

I am new to wordpress. I have made a custom wordpress theme and have added a few page templates to it, that I have used on different pages. Now the issue is that When I deploy the website on the server the the pages are not public (i.e. the user is asked to enter the username and password before he/she can visit the page). Although I have made them public in the edit page section, but they are still not public. When I change the theme and use any of the default WP themes the pages are public. Need some help in this regard.
Thanks.
If it works with the default theme and not yours, its definitely a theme issue, do you have a link to your site or a link to the theme you are using?

Hide wordpress plugin retrieve directories inside url?

I'm developing a wordpress plugin, for my plugin links I want to hide the "wp-content/plugins" part inside the url, I'm wondering how to do that?
Actually I want the url to be like wordpress pages, not showing the retrieve directories.
I'll appreciate any help

Wordpress Shop And Blog

I am using wordpress shop plugins also blog pages but right now I want to make a new wordpress site and in this site I only want to show wordpress blog but it show blank page.I think because of plugins missing in new installation.One thing more I m using same database for both wordpress site.
Can any one please guide me?

how do i move a wordpress blog to a wordpress site with a blog

Client had a flat file php site and wanted a blog, so I installed wordpress stand along blog. Now they want to convert then entire site to Wordpress. The current blog is in a subdirectory called "blog". I would like to create a blog page called "blog" on the new site and import the posts that are in the WP standalone blog installation.
Can I just take the SQL statements and insert them as autoincrements in the new database. How do I import the tags and categories. What about the author number? It will be painstaking, but I don't want to cut and paste a hundred blog posts.
Install WordPress in root http://codex.wordpress.org/Installing_WordPress .
Create a page called Blog with the slug of /blog/. Set that as your posts page in Dashboard>>Settings>>Reading.
Export your posts,categories, authors and images from the current blog via http://codex.wordpress.org/Tools_Export_Screen and then import them http://codex.wordpress.org/Importing_Content into the new WP site. You should be able to keep the same structure to your permalinks.
Then, if needed, create static pages to match the current php pages and cut/paste the content into them.
Why wouldn't you just make the primary site URL point to the blog site? Or take a full backup of the blog site and restore it on the main server in doc root? Then add your pages content right in the current blogging site? You can point both www.whateversite.com/blog/ to the posts (blog page) or even blog.whateversite.com to the same.
Seems like a LOT of extra work to setup a new WordPress install then go to a current WordPress install and export the blog posts then re-import just the blog posts.
If you absolutely have a great reason for not just using the current WordPress install and building on that then I suggest you spend the $15 and get VaultPress from the Automattic group and backup the blog site. Then use the restore to alternate URL feature to clone it to a brand new WordPress installation you've started at the new main site. It will restore the content and replace inline URLs for you which is a HUGE time saver.
I've moved / cloned multiple sites this way. It is by far the easiest method, especially if your in-blog URLs need to change from blog.blah.com to www.blah.com.

Resources