How do I integrate a website template on my main wordpress website? - wordpress

I have a Wordpress website made to show a portfolio of websites, so the client can have an idea about what kind of wordpress-based website I can create for them.
My question is, is there any smart way of creating a live website template inside a website? My approach would be to install another wordpress release into a folder (e.g domain.com/template1; /template2 etc.) but it feels kind of...ancient.
Is there any other way or am I steering into the right direction?

I would say, the easiest way is to make a second customize.php, because there you have the possibility to take a live preview and make a new site template with it.
Important: Do not forget to restrict a lot of settings like, choose this Template - otherwise it will be set as default for your website :)

Related

Integrating Wordpress from one WP site into another non WP site

I am developing a mobile version of a current WP site, but this mobile version is not WP. So I need to be able to access the information in the database of the non-responsive, existing WP site in this new one. The mobile site is located in a sub-folder called mobile (somesite.com/mobile) in the root directory of the current WP site.
I've visited the WP forum and posted this same question without responses. I've also read their integration page (http://codex.wordpress.org/Integrating_WordPress_with_Your_Website) but it doesn't seem like that would work for this application, because I figure it would just cause the mobile index.php page in the /mobile folder to just revert to the main theme.
Any suggestions or advice would be much appreciated.
You should use the integration guide you posted:
define('WP_USE_THEMES', false);
This part tells wordpress not to use themes.
I think a better approach to this problem is to make the current wordpress theme responsive:
there are a number of ways to achieve this: you can add separate stylesheets for different browser sizes: http://css-tricks.com/resolution-specific-stylesheets/ or you can use css3 media queries directly in the stylesheet: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries
You must create the new site using data from the WP site.
Ok. You will need to create your html/php files, but, using WP database.
You can just access WP database and query it... but you will have a lot of work, in some places... like, URL, you will need to transcript URLs saved on database, and, when a user click on that link, you will need treat it to find "back" what URL it means, to catch the content.
I't not a easy job.
The WP_Query (http://codex.wordpress.org/Class_Reference/WP_Query) class can easy your life.
The WP_Db (http://codex.wordpress.org/Class_Reference/wpdb) too.
Both, I think you can use without the whole WP.
But, like #Jonathan said, build a responsive template will be a best solution.

Rebuild wordpress site with codeigniter

I have a client that has a website that is built with WordPress. They want to expand the site adding new features. To me it seems best to rebuild the site so WP is not being used. I like using codeigniter but one issue is how we keep our SEO rankings.
The urls in WP are something like www.foo.com/test-this-site.html
Is there a way to build the site in Codeigniter but utilize that URL structure? I basicly need to keep all the current pages working at the same url.
Does anyone know if this is possible with Codeigniter and how this may affect search ranking? Or is there a better way to go about this. Any sort of direction would be helpful
By using the URI Routing in Code Igniter, you can customize all the link structures you want in any way you want.
You will just have to make sure you support all the same links than WordPress and you'll be fine.

wordpress how to manage web and mobile sites with one database

I want to build a web site in wordpress. A web version like mysite.com and a mobile version like m.mysite.com. I am thinking that will it do able in wordpress because wordpress save domain name in database.
mysite.com/m will be possible but the requirement is to go with m.mysite.com.
The approach in this helped me: http://www.phillipadsmith.com/2011/11/note-to-self-a-simple-way-to-accomplish-mobile-site-redirection-using-mod-rewrite.html
However, proper creation of templates and css will really make the need redundant.

How to use wordpress to make a commerical/non blog website

I have managed to setup a blog on localhost quickly using wordpress. But what is ivolved in setting up a commercial website that is not a blog?
Also, should learning to use wordpress be more diffcult than learning Asp.Net or php? I can use these languages to create a website more quickly than using wordpress it seems. I'm guessing it should be possible to create a basic php website and then somehow hook it up to the admin functionality of wordpress to publish content and update it?
Any comments and suggestions will be appreciated.
Thanks,
A few thoughts on this.
First, Wordpress is based on PHP. So if you know your way around in PHP you are able to change anything within wordpress, you can build customized plugins, templates, etc.
However, using Wordpress has nothing to do with the programming languages you know. The fact that you are struggling with it is probably more because you don't understand yet what the features of Wordpress are or what you can use them for.
You can easily use Wordpress to create a simple non-blog website by setting up pages instead of posts. So you would be using Wordpress not as a blog engine but more as what's usually called a content management system CMS (not that using it as a blog engine wouldn't make Wordpress a CMS, but I'm talking about the general usage of those wordings).
A simple Google search might help you find more information about how to accomplish it in your specific case.
Hope this helps!
You need experience with PHP, HTML and CSS to configure WordPress to run like a non-blog website. Is it easier? Maybe, you get what you want but you won't understand what is going on.
If you are creating a static web page, say like a company's web site with little to none dynamic content, use pages (not posts) and create a static front page.
If you wish to use WordPress like a generic CMS, you can either use the Pods plugin or the newly introduced custom post types and taxonomies (new in Wordpress 3.0). You still need knowledge of PHP/MySQL to configure the Wordpress Loop (which is used to display blog posts and other dynamic content) and Wordpress Theme tags (to display name of the current logged in user).
Some plugins help with customizing the site for a non-blog look. Theme My Login and Theme my Profile blends the log-in page and profile page with your theme. However, if you need to customize the appearance, or add new logic, you pretty much need programming.
In short, you would need knowledge of PHP and MySQL; CSS too, if possible. Get your hand dirty building some sites, then what Wordpress offer and does for you with its API will be more relevant.

Integrate wordpress blog with joomla website

I have a website which I developed in joomla and a blog in wordpress. I would like to integrate that blog with my Joomla website without using wrappers or CorePHP component.
Is there any way to do this?
I think the best thing you can hope for in this situation is going to be to have one be a subdomain of the other, and when you want one system to reference the other you'll need to link to it. Also, if you could move one of the systems to be a subfolder of the other system, you'll probably get away with having relative links.
The only other option would be to literally migrate all of your content from one system to the other manually.
What about using a feed reader in your Joomla website to show your Wordpress posts?

Resources