Blog section within wordpress - wordpress

I have a site and I'd like a sub section of that site to be blog.
Details:
The site is fairly dynamic.
I have image carousels that get populated via custom-post-types utilizing featured images.
I have titles and headers being populated via custom-post-types and etc... That's all in the index file.
I want to create a pure blog (i.e. news style subsection of the site that aggregates latest blog posts on the www.domain.com/blog, has widget areas that post related content, comment sections, etc etc...) as a subfolder of the landing page.
I was thinking that I would create a new instance of wordpress and put it in a subdirectory of the domain called blog. Obviously this is not an optimal solution.
I'd appreciate any help.

No reason to do another install of wordpress. Just create a separate template and go from there.
These two links should get you started:
http://codex.wordpress.org/Stepping_Into_Templates
http://codex.wordpress.org/Template_Tags/get_posts

Related

Is http://www.shoutmeloud.com/videos a separate website?

I just wondering whether http://www.shoutmeloud.com/videos is a subdomain under subdirectory?
I am just curious to know how we can do that.
I have a website called http://quantumbuddy.com/ and I want to share spirtual video the same way here shoutmeloud did.
Can anyone let me know how they did?
The website Shoutmeloud is a very popular website of a very popular Indian blogger Harsh Agarwal. The website is WordPress built as told by him many times. Regarding your question - the http://www.shoutmeloud.com/videos is not a directory because if it had been a WordPress directly there would be a login url - http://www.shoutmeloud.com/videos/wp-login.php, but it is not there.
Seeing the design of http://www.shoutmeloud.com/videos i think it is a post category (videos) which shows the post contained in it(here videos).
In wordpress this comes by default, all you have to do is to create a post category and add post in it. Then in these post add youtube videos embed code.
You can easily achieve that by going to your wordpress dashboard then add a new page and name it like videos then insert some video files there whether it's a link or from your uploaded videos then save it.
To check the page, Add it to your main menu for example then save it.
The url would be like http://quantumbuddy.com/videos.
so basically the videos is the name of the page.
I checked your site and it only contain one link in the menu. Add a page and add it to your menu bar and it would display next to the Blog link.
The website you are referring to is using Genesis Theme. You can find it here
.

How to locate file of wordpress page

I am a real newbie with wordpress. I need to quickly find out the filename for a particular url.
Let's say my URL is
http://example.co.uk/account/membership-levels/
Where will the .php or .html file most likely be? In themes folder?
w
Thanks for your help.
Wordpress doesn't have a 1:1 relation between content and templates. On some minimalist themes you could have a single php template in your themes folder (wp-content/themes/themename/single.php) to display all your articles.
Depending on your permalink structure, that link you are asking about is probably rendered using the page.php template, and if it isn't, then single.php should be the one. The only reason for editing a template is when you need to change the structure of all your posts. If you only need to edit one particular post or page, then you should just edit the content.
To edit the content, you need to log into your dashboard (wp-admin) and look for that entry among the pages or posts section.
Many themes will show an edit icon next to the posts title if you read it while logged on your dashboard, so you can skip searching for it in the backend.

How to make category templates, pages and index appear in the same menu in wordpress?

I am having some problems structuring a Wordpress Website.
Basically this website will have the following pages:
Home
Portfolio
News
Contact
The home will be designed by the index.php, that is no problem. In this page I will show some of the posts that should be in the News and some that should appear in Portfolio.
The pages Portfolio and News should present a list of posts that match this category.
Contact is a normal static page.
My idea was to create a static page for portfolio and for news and to change its theme so I get a list of posts matching this category and handle it. But I found out that this does not work as I thought because pages are not meant to this. For this reason some functions (as the_content) do not work. So I found about Category Templates, which seem exactly what I want.
But now my problem is: my menu is being built automatically and I find it nice. Using the category page template would cause me to need to build it manually, which looks like (for a newbie) a bad smell, once it can be built automatically.
Is the approach with Home->index.php, news and portfolio -> category template and contact -> static page a nice approach?
How would I build the menu in a elegant way with this approach?
Thanks!
Oscar
I don't think your approach was the best, I would have used page templates to pull the different layout/type of pages and use the front-page.php to create the homepage.
But every dev has his own way, I guess.
I think you can easily solve your problem building the menu with the built-in menu builder of wordpress. You can go in Appearance > Menu if your theme is compatible with that.
Check further documentation here
hope it helps!
cheers
In wordpress you can add static page or categories or any other pages to wordpress menu. For creating menu in wordpress see this links.
creating menu

WordPress cms and blog with same site, how to code blog's index page

i am coding up a cms site which also has a blog section by using wordpress.
the website previous had a blog section at /blog, which powered by wordpress, and a bunch of static pages. now they want to convert entire site to wordpress.
basically what i did is making a handful of "page"s , and set the website's index page as one of these static "page". apparently the blog section need to be part of this wordpress installation.
now i am wondering how do i render the index page of the blog as index.php has been taken for the "cms" part?
thanks
Your question isn't very clear - but there are two options for "home" page and "blog" page. Home page you have set, you can then set another page as the blog index.
Of course you will need a page template for that page so that it retrieves the latest blog entries.

How to add custom URLs to my WordPress template files?

I'm developing a WordPress theme and I need to have a custom URL for some kind of content.
For example, I need to have a page to show some article details. Now, i've created a page template called "Article", and so i've to create a new page and give it the page template "Article"
(I get the url http://mydomain.com/article?id=123)
It works fine, but now i'm having dozens of this pages, and it's a mess to create them all on every installation of this theme, so i want to do it in my theme code.
I saw something near that on BuddyPress, where you can use /member/ and it redirects to a member page. I just wanna know how to do so.
Thanks!
If you are running wordpress 3.0 I would recommend making a custom post type for your articles. That would allow you to control the URL in the way that you want and also allow you to use more sophisticated full text urls if you wanted to.
Here are some links to some tutorials about how to make a custom post type to get you started:
http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0
http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/
The second one has an example file that you can download and edit to help you get started.
Cheers,
Paul

Resources