Forums

Video blog and Article blog on single WordPress install - your advice, please (3 posts)

  1. sipsniffa
    Member
    Posted 2 years ago #

    Hi,

    I'm implementing a site that has a 'video blog' section and an 'article blog' (i.e. non-video) section. I need to provide two index pages: one for videos and one for articles, each with a uri something like:
    mysite.com/video
    mysite.com/blog
    and a static front page:
    mysite.com/
    I'm inclined to use a 'video' category to separate out video articles and filter these out from the main blog listing - say, using is_category('video'). That deals with the 'article blog'.

    For the 'video blog' section, I'm considering using the rewrite_rules_array filter to do a URI rewrite:
    mysite.com/video ==> mysite.com/category/video

    So, my questions:
    Are there any pitfalls to this approach?
    Are there more elegant solutions?
    Is there a more maintainable solution (I could write an admin plug-in to provide flexibility in the video category naming).

    I expect this problem has been solved many times before, though I'm struggling to think of the search terms to find them! Any pointers/links to previous solutions and related articles would be appreciated!!

    Thanks,

    Paul.

  2. doodlebee
    Member
    Posted 2 years ago #

    Have one category for Video, one for Articles. Use a query (query_posts()) to pull in the content into whatever sections you want. No need for .htaccess rewrites. If you just want the /category/ part remove from the URL, there's already a plugin that does that.

  3. sipsniffa
    Member
    Posted 2 years ago #

    Thanks for the reply. I did mention that I'm using two categories to help with the separation.

    I'm afraid I didn't mention .htaccess rewrites - my suggested solution would use the WordPress rewrite_rules_array filter to remove the category portion of the URI in order to give what appears to be a second (video) "posts page". Any advice on its use would be very welcome.

    By the way, I only want to remove the category portion of the URI for one category - i.e. video. I believe the Decategorizer plug-in you referenced removes the category portion of the URI for all categories and the plug-in has now been deprecated.

    Thanks again, and any further suggestions would be welcome.

    Paul.

Topic Closed

This topic has been closed to new replies.

About this Topic