Can you please shed some light on incorporating word press into the site.
Here my requirement is..i have a tab called 'my blog' in my website.
When the user clicks that button he able to see the name of my blog
and my posts and archives and also tags..these much information i want.
I don't want to use complete word press in my site.
This is really simple. Follow my instructions.
Login to your cpanel.
Create a folder named blog in your root.
Upload the latest version of wordpress you downloaded from
WordPress.org.
Unzip it to the blog folder. (Make sure to move all files outside
the folder wordpress)
Create a MySQL database and add a user to it. Make sure to keep the
database name, username and password. For most of the server the
hostname will be localhost.
Now go to www.example.com/blog and just follow the instructions
there and Run the installer.
Now you can login into your WordPress Dashboard.
Search google for some free wordpress themes and install one of the
themes in Theme section in Dashboard.
Now your wordpress blog is ready. In your site for the blog tab
give the link as www.example.com/blog.
Reference Links:
Famous 5-minute installation - WordPress
Cheers !!!
Assuming you are self-hosting, and have access to your controls;
You will need to create a new MySQL database, and safely store your database name, username, hostname and password for later.
You will have to download wordpress http://wordpress.org/, and follow the installation instructions also found at http://wordpress.org/.
In order to do what I think you're wanting to do, you will need to create a new theme by creating a new folder in your Content > Themes folder, and move ALL your site files into this new directory.
Add to your CSS file to make it an applyable 'theme':
/*
Theme Name:
Theme URI:
Author:
Author URI:
Description:
Version:
License:
License URI:
*/
You will then have to assign this new theme to Wordpress, and create at least two template files,
category.php
single.php
Within these two templates is where you will loop through your posts, and display your full posts, respectively.
This isn't a graceful solution, however, it will do what you want it to in a rudimentary way. It would be better to develop a proper theme for your site, and fully take advantage of Wordpress as a CMS, and not just a blogging platform. There are lots of resources on how this is done, and it may seem overwhelming but start small, that's how you learn.
Related
The Situation
I have a website hosted on Netlify that consists of HTML and CSS files only. Let's call it "domain.com".
I want to keep that website the same, but add a Hugo blog only on "domain.com/blog/".
What I've Tried
I've created a folder called "blog" in my "domain.com" repository and copied over all of the Hugo stuff. Then I go to Netlify's build settings and told it use Hugo to build it. I don't think this works because it's looking for a config.toml file in my root folder, which isn't there, it's in the blog folder.
Then I tried creating a new Netlify site build from the /blog/ directory of the repository with the build setting "hugo --gc --minify". This doesn't work either and definitely doesn't put the the blog at "domain.com/blog/".
What I'm Wondering Now
Is this even possible?
Would I have to just start the whole thing from scratch and start from Hugo?
Is there a better way to create a CMS on "domain.com/blog/" that's free and not Hugo?
Since asking this question I have realized that it's not a good question. I'll keep it up though in case somebody has the same thought process as I did. It's not about getting Hugo onto an existing site, it's about getting your existing site onto Hugo.
I ended up porting my existing index.html and other pages with CSS over to Hugo. Basically I just copied those into the root of my Hugo site so they look exactly the same as they did before.
The only thing that is really generated by Hugo is the blog, which is the end result I needed.
I am looking for ways to make some of the posts on my blog visible only to myself but can't seem to this in Hugo.
Is there any way around this such as setting a password for certain posts?
Or is the feature supported but I just haven't found it?
Since Hugo just generates the static HTML, the question can be widened to: how to password-protect any static content on the web server.
That's doable.
It depends what is your web server using: Apache or Nginx or something else.
In Apache case, set up password authentication via .htaccess. See tutorials like this.
In Nginx case, set up password on your server block section, see tutorials like this.
For other server (IIS?), google accordingly.
Some people will want to downgrade this question, but in my opinion it's very valid, for example, if you want to post portfolios, CV's and whatnot on your personal website and limit public access
Make a landing page on Hugo site, password-protect the URL and give visitors the password. Easy, fast and still static!
My way to keep posts private is to set the draft flag in the front matter:
TOML
draft: "true"
A good practise for me is to connect a local instance of Hugo with GitLab/GitHub. If you want to see your website or a specific post as a rendered version you can turn on and off the visibility of pages using the draft flag with true and false.
If you have finished your tests you can push the final version with or without the draft flag active to the repo and sync it with your server side installation of Hugo.
Posts are displayed in multiple places (RSS feeds, search results, sitemap etc.).
Here is an article with an updated checklist and a solution to publish hidden posts with Hugo
Installation
git clone --recurse-submodules git#github.com:RoneoOrg/hugo-offtherecord-demo.git
cd hugo-offtherecord-demo
hugo serve
Usage
Set offTheRecord to true in the Front Matter of the posts you want to hide. That’s all!
See the source for details
First of all i know that wordpress will redirect from old permalink to new.
But if I'm not using WordPress the old permalink will be dead.
In example
http://www.example.com/%postname
I have changed to
http://www.example.com/%year/%date/%postname
In wordpress all traffic from old will be redirect to new but in database was not changed it's still old. Jekyll can't do this.
I want to fix this thing can anyone guide my way?
(I do this because I'm migrating to jekyll everything is OK but this one)
There is a plugin for redirects in Jekyll.
You can simply create a _redirects.yml, _redirects.htaccess, and/or _redirects.json file and set initial page address with an old link and a destination page with a new link.
I want to create a mobile version of my website and host the WordPress install on a subdomain. For example, my main domain is at http://www.startingtofeelit.com and I linked the subfolder "mobile" to the subdomain m.startingtofeelit.com
I installed a fresh copy of WordPress to this folder/subdomain, and I want whatever posts appear on my main domain to appear here as well. I copied/pasted the wp-config.php file over to the mobile domain so it would link to the correct database, but using functions like the_permalink(), or trying to log in, always return values from http://www.startingtofeelit.com instead of the subdomain.
Is there an easy way to make a mobile subdomain work correctly in WordPress?
Can't link to an authoritative resource, but I'm pretty sure that's not possible. Sharing the same user table is possible, but the whole site not.
But I think that's an XY Problem. Instead you should serve your own theme when your selected devices hit the site.
Study how the plugin WP Touch or similar do it. I know we need the hook template_redirect, which is the one I use in my plugins, when we want to override the Theme and serve a Plugin template.
I've developed a new wordpress website on a testing domain name on our server.
I had set the site up ready to go live... but I had to move the wordpress website onto another domain name that we are also hosting on our server.
So what I did was copy all root folder content from the testing domain name and pasted the content into the new domain name's root folder.
I then logged into wordpress, changed all the necessary settings like WORDPRESS URL and SITE ADDRESS URL as well as image absolute urls in each and every individual pages to make sure that I've got the right URL for everything.
When I click on MEDIA, I can see all the images like normal.
Great ... then I go and check the website live and I see that there are a lot of images that are missing! They are all in the MEDIA panel - but do not show up on the website!
I then double check that all images are pathed correctly ... and they all are.
Now why do SOME images show up and others don't?
I've even tried to add a new photo and use that photo in place of another photo that isn't showing up and that new photo doesn't even show up.
Where does my problem lie?
For example, 1 slideshow on my website which isn't showing images, give me an "image not found" error for a image:
Image not found: http://www.domain.com/wp-content/themes/natural
/lib/timthumb.php?src=http://www.domain.com/wp-content/uploads/2012/08/breakfast-gallery-011.jpg&w=610&h=0&zc=1
Ok I am going to answer my question with some advice.
It's clear that some of my images were 'hard coded' as devin mentioned as I could not find a logical reason for some not showing (even when I looked at the tabular data in MySQL) and because I'm not a database engineer / developer - I wasn't prepared to dive too deep into that with the possibility of causing further issues... so I decided to take down the entire wordpress site, create a new database, re-install wordpress and I imported an exported xml file that I created and saved (luckily) before 'migrating sites'.
Advice:
1) Whether you migrate a wordpress site or not, always backup your website regularly by creating an export of your wordpress structure. It may save you a lot of work in future.
2) If you're an amateur or beginner at development and MYSQL like myself, I'd suggest you create your wordpress site on the actual domain name you want it on. This will save you from 'migration' headaches as I've just experienced ... and a lot of time. Learn from my mistakes. Although there is probably a solution to my question above, it's out of my expertise / knowledge and could be out of yours too... so make it easy for yourself :)
The issue is not that the image URls are hardcoded only. The last portion of the URL is harcoded, but you will most likely have "/wp-content/" embedded in the URL which indicates that the image's URL string is dynamically created. I looked in my wp_postmeta table and there were all of the partial image URls ( like this - 2013/03/expanse2.jpg ). Now where is the beginning part of this URL and the domain name? The domain name is the part that is actually missing from the all of the image urls in my case. I dug into the database a little deeper using phpmyadmin ( but i recommend Webmin if you can get it up and running ). I ran into the "home" field in the "wp_options" table. Asked Google what a proper "home url" would be for wordpress, which brought me to this page ( http://codex.wordpress.org/Function_Reference/home_url ) , and this line was in there ( home_url() is located in wp-includes/link-template.php. ). Went to that file and found that it controls how URLs are built, but not uploaded image urls specifically. In the end i went into a page that had an image, looked at the advanced settings and found the image URL was just missing the domain. I used the wonderful search and replace script to repair it. Done