Goal: my client needs me to create a simple Video Archive page - hopefully today.
This will be a page that archives posts of a specific category (ex. parentcategory=TV>childcategory=Training) and that automatically shows the latest full post, with the category archives below. So the contents of the page would be: Title: Training before the archive: the latest full video post, so that the member sees an actual video, not a link to the post, at the top of the page. the archive: titles of the posts in this category, by chronological order, latest one first. page functions: after XX video posts, the page automatically goes to page 2, and so on.
The end result I'm looking for is probably simple, and I have done some research, but I'm afraid because it seems really complicated, and I don't have much time as I'm working through a Membership plugin issue that's taking most of my attention right now.
I see that there is an 'archive.php' in BP Scholar.
Questions:
1. Should I copy the Scholar archive.php into the Scholar Child theme (at the top of the folder) and make changes to that?
2. I'd like to understand how the php works, but since I don't can you just give me an example of the code I'd need, or point me to an example?
3. When I have the code, where in archive.php (which I'll probably call 'videoarchive.php' do I actually put the code?
Goal: my client needs me to create a simple Video Archive page - hopefully today.
This will be a page that archives posts of a specific category (ex. parentcategory=TV>childcategory=Training) and that automatically shows the latest full post, with the category archives below. So the contents of the page would be: Title: Training before the archive: the latest full video post, so that the member sees an actual video, not a link to the post, at the top of the page. the archive: titles of the posts in this category, by chronological order, latest one first. page functions: after XX video posts, the page automatically goes to page 2, and so on.
The end result I'm looking for is probably simple, and I have done some research, but I'm afraid because it seems really complicated, and I don't have much time as I'm working through a Membership plugin issue that's taking most of my attention right now.
I see that there is an 'archive.php' in BP Scholar.
Questions:
1. Should I copy the Scholar archive.php into the Scholar Child theme (at the top of the folder) and make changes to that?
2. I'd like to understand how the php works, but since I don't can you just give me an example of the code I'd need, or point me to an example?
3. When I have the code, where in archive.php (which I'll probably call 'videoarchive.php' do I actually put the code?
You will have to learn basic php and how to use the WP loop to customize. There are lots of tutorials out there. Most likely you will need to use a custom field added to video posts where you put the embed code or url for each video. That way you can pull it out to create the featured video. http://codex.wordpress.org/Custom_Fields
There may be some free video themes out there you could learn/copy code from.
Responses (2)
Lead Developer — 5th August 2010 #
I would copy the archive template and change it into a category template in the child theme, customizing it there:
http://codex.wordpress.org/Category_Templates
You will have to learn basic php and how to use the WP loop to customize. There are lots of tutorials out there. Most likely you will need to use a custom field added to video posts where you put the embed code or url for each video. That way you can pull it out to create the featured video.
http://codex.wordpress.org/Custom_Fields
There may be some free video themes out there you could learn/copy code from.
Member — 5th August 2010 #
Hi Aaron:
Thanks so much for the fast reply: this gives me some good info to go on. I'll report back with the codein case others need it, once I know it works.
Terri
Become a member