Integrate Wordpress post/blog in my website - php

I have a site which is the cms of Eccube ( ecommerce) . It doesnt have dynamic post feature like in wordpress and all.
I want to integrate the wordpress inside my website. It can be anywhere like new page or anywhere.
I have also installed wordpress inside eccube directory with folder name BLOG .
So the actual path is like this :-
/public_html/azlily.awe.jp/eccube_1/html/blog
I have created a new post, thats fine but going to that post will open in wordpress templates, It will look like two different websites. I want the post to appear inside my eccube website but not with wordpress website.
Any solution for this. I googled but only found Wordpress and html website hook up but not with eccube.

Only one option is redirect wordpress blog to "www.example.com/blog" or "blog.example.com" on click
You can access wordpress blog from "BLOG" folder directly
You need to change layout of the wordpress blog so that it will match with your main website, So that it wont appear like two different websites

Related

Wordpress site structure and adding subpage

i need to edit a Wordpress based site, but i am new in Wordpress and php. Let's say, there is a site myhomesite_com, it has some subpages, like myhomesite_com/about, myhomesite_com/forum and so on. What is the files and folders structure of Wordpress site ? How do i create a new subpage (i.e., myhomesite_com/news) and edit it ?
If you have a working worpdress theme, you do not have to code your subpages. To add new subpages you need to create them on the dashboard. No code skills required here at all.
1) Go to myhomesite_com/wp-admin
2) Go to Pages -> Add New and create your page.
If everything is setup correctly, the page should be up.

Exclude '/category/' from menu links URLs in WordPress

I work with wordpress site, where now category page is accessible from two types of links:
http://SITENAME.com/category/CATEGORY-NAME/
http://SITENAME.com/CATEGORY-NAME/
And from right-side menu the links shown as first type, which is wrong.
I need to setup side-menu links to looks like http://SITENAME.com/CATEGORY-NAME/ (without 'category' in every path).
How it can be done? I haven't found such settings neither in admin panel nor in templates...
I would recommend this plugin:
http://wordpress.org/plugins/wp-no-category-base/
The plugin requires no setup or modifying core wordpress files and will not break any links. It will also take care of redirecting your old category links to the new ones.
If you run a multilanguage site with WPML plugin, try this:
http://wordpress.org/plugins/no-category-base-wpml/

Making non Wordpress pages work on a wordpress site

I've got a wordpress website, but I'd like it to also work in a way where I can add other, non-wordpress pages and assess them like a normal website. In my case, I have a page in the root of my FTP account: http://puu.sh/3IdDY.png In this case, I want to be able to go to www.labtec901.com/admin.php, which I think I should be able to do, without wordpress coming up and saying it can't find the page: http://puu.sh/3IdI0.png

Adding my own static webpage to a wordpress site

If my title wasn't clear, basically what I'm trying to do is to add my own HTML or PHP page to Wordpress, so i can play around with some web dev.
So essentially I just want a test page/pages added to my site. However since I have installed Wordpress on my website, I can't just add "index.html" to my root folder using my FTP client. I wonder if I can/can't do this and if so how to link to the pages I add using FTP.
Sorry if this doesn't make any sense. I just want to add some of the sites I've already made / ones I am creating to my site so I can easily show clients/employers what I can do, and I apologize again if I'm being an idiot.
Create a sub-directory in your root folder and then simply link to it:
www.domain.com/mysubdir/index.php
the other way to do this... create a page template in wordpress
create a php file named: template_mypage.php
You must put this php comment line at the top of your template file:
/* Template Name: My Page */
go to wordpress backend and create a new page
in the "Page Attributes", you can find a drop down list named "Template". In the list, you should be able to find "My Page"... select it and then save your page.
view it!
You can always create a subdomain or create a folder inside public_html/www/ and redirect it from any other domain or from any static link you have on wordpress
Why not use WordPress and put your portfolio together using Custom Post Types? I recently presented on this and there is a handy plugin for Custom Post Types UI that you can create a whole new section of your site and make templates for your portfolio.
Just a thought.
If you do a static page in WordPress, you can still template using the Page system as specified in another comment. Code your page, separate it into header, footer, content, etc files. You can load the file to your root, but not name it index. If you do a subfolder, you need to not have an existing page in WordPress.
HOWEVER, you can still do a "halfway" static page still using WordPress and do a header-staticpage.php, index-staticpage.php, and footer-staticpage.php and make sure to include the code for WordPress header and footer in the new header and footer so you can still reap the benefits of the default jquery that WordPress allows. Don't forget to name your template and when you create the page in WordPress, you can just leave the content area blank if you have hardcoded the page's content in.
I still recommend trying Custom Post Types. It is not hard and there are some great presentations in Slideshare that cover this aside from the plugin I mentioned earlier in this comment.

Intergrating ATK4 with wordpress development

I found a article on the atk4 blog http://agiletoolkit.org/blog/integrating-agile-toolkit-with-wordpress/ I followed the instructions and i get a error and it says the ApiWeb Class not found. Then I looked in index.php on the real framework that you download and it initializes everything differently then the blog post did so. I'm wondering if ATK4 can be integrated or maybe I'm doing something wrong?
I'm also currently integrating a wordpress site with ATK4 at the moment.
The ApiWeb.php class is present in the atk4/lib directory in both 4.2 and 4.1.3 versions of atk4 so not sure why you are getting an error.
What is suggested on the blog page about integrating ATK4 with wordpress is that you would load the ATK4 libraries as php embedded in the pages so you would need to ensure you change the include line based on where you have placed the atk4 files.
<?php
include 'atk4/loader.php';
$api=new ApiWeb('sample_project');
$api->add('jUI');
.. .. ..
$api->execute();
?>
I havent tried this but think you would need to verify the path to ATK4 is correct.
I've taken a different approach to integrating Wordpress and ATK4 - rather than embedding ATK4 into the pages as per the blog article you referenced, i'm going with installing wordpress in one installation and ATK4 in a separate one and using the same template in both.
The wordpress template i'm using is from themeforest and it came with a WP folder containing the Wordpress files plus a HTML folder that contains example pages. I took one of the HTML pages and created a new templates/default/shared.html inserting the atk4 tags such as in the appropriate places.
I've created a menu in Wordpress Theme->xxx->Menu which are mostly static pages from Wordpress and one menu option which is a link to the start of the ATK4 root. Because i'm using the same template, it looks like a single site. In my case, i'm not using the login functionality of Wordpress - all the wordpress pages will be accessible without logging in but i am using a dynamic second level menu and options based on the logged in user which will be defined in Frontend.php
The ATK4 menu gave me a problem because it wasnt consistent with the site and after a while trying to style the menus with CSS and create a submenu using Menu_Basic and Menu_Lite, i went with using ATK4 Views and split the HTML from the wordpress theme, to create a menu.html, a submenu.html and a menuitem.html and have set this using code in Frontend.php
It's still a work in progress so i can't provide the link at the moment as it's not online yet but it seems to be working and may give you other ideas depending on what you want to achieve with integrating ATK4 and Wordpress.
If you want to have a common login for ATK4 and Wordpress (using ATK4 to control the access each user has), there is a plugin for Wordpress that might help with external DB Auth so you could use this with the BasicAuth of ATK4 instead of using Wordpress Auth functionality.

Categories