Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter exbionic

    (@exbionic)

    *shameless bump*

    Anyone else having issues like this?

    Thread Starter exbionic

    (@exbionic)

    Hi Michael,

    Thanks for your reply. I’ll give that a go and see what happens.

    Many thanks again for your help and posting the code.

    Best wishes,

    Scott.

    Thread Starter exbionic

    (@exbionic)

    Hi Michael,

    Perfect, thanks!

    I think this was a case of expecting a difficult solution without seeing the easy one – D’OH!

    Thanks again.

    Thread Starter exbionic

    (@exbionic)

    [shameless bump]

    Forum: Plugins
    In reply to: Child Categories
    Thread Starter exbionic

    (@exbionic)

    I’ve, in a sense, managed to solve this problem.

    It occured to me that although the child categories of Directors were not finite, the child categories of Genres were. Therefore I just created the requisite number of ‘category-x.php files and let category.php be the template for all director categories.

    I am goingto leave this post as un-resolved though as some kind of if/else for children of parent categories would be a much more elegant solution.

    If anyone can come up with anything here I would certainly be interested in seeing it.

    Cheers.

    Forum: Plugins
    In reply to: Child Categories
    Thread Starter exbionic

    (@exbionic)

    Hi Storyman,

    I never noticed you reply before posting my reply to Michael!

    The point at which I need the template is not for a single page but for a complete list of posts in any given category i.e https://www.foo.com/?cat=12 etc.

    I pull in a thumbnail and a link to each post in that category which contains the video clip.

    Hope that makes sense.

    Thanks for your reply ??

    Forum: Plugins
    In reply to: Child Categories
    Thread Starter exbionic

    (@exbionic)

    Hi Michael,

    Thanks for your reply.

    <?php cat_is_ancestor_of(cat1, cat2); ?>

    I don’t think this is what I am looking for as, if I’m reading this right, you would need to declare all of the child categories in the function?

    I am thinking that, maybe, I should have included more detail in my original question.

    The site I am building is for a TV production company and contains a lot of video clips of their work. I have set up my categories and child categories as follows:

    Directors
    ___Director Name 1
    ___Director Name 2
    ___Director Name 3
    ___etc.
    Genres
    ___Comedy
    ___Drama
    ___Animation
    ___etc.

    My problem is that I need to have a different template shown if the viewer is visiting a Director page than when viewing a Genre page. Obviously when I say ‘page’ I mean web page and not a WordPress ‘Page’.

    It would be easy (if not a little tedious) to set up category-x.php files for each of the categories but the list of directors is not finite and the client will want to add to it as they work with new directors.

    Therefore it would be easier if I could just get WordPress to check to see if the current category being viewed is a child of either ‘Directors’ or ‘Genres’.

    Sorry for the long-winded post! Many thanks again for any help.

    Cheers.

    Forum: Plugins
    In reply to: Category Box in Admin
    Thread Starter exbionic

    (@exbionic)

    Hi brockangelo,

    Thanks for your reply. Unfortunately, this doesn’t seem to work for me.

    Looking through the code when viewing the page in the browser I found that the styles referenced in the sidebar.php aren’t being used in the output code.

    I noticed a div called categorychecklist and found the CSS for this in the wp-admin.css file at line 1060. I just changed the height value there.

    Hope this helps someone else.

    Cheers.

    Thread Starter exbionic

    (@exbionic)

    Should anyone be looking for a solution to this in the future I managed to solve this by installing this plug-in:

    https://tacoen.smedia.or.id/contents/coen_catcustlist.phps

    I also installed the PHP Exec plugin so that I could write the following into a WordPress page:

    <ul class="floatleft"><?php catcus_list('<li><a href=" %caturl%"><img src="../wp-content/images/%catname%.jpg" width="100px" height="100px"></a><br/>%catname%</li>','3','cat_name',0); ?></ul>

    It outputs an unordered list (styled by css to float left), of all the category names and a jpg file that MUST have the same as the category. This then links to the list of posts within each category.

    Thread Starter exbionic

    (@exbionic)

    Hi Kafkaesqui (good name!),

    Thanks for your reply. All posts in this particular category will work like this, but only this category. On my index I will have the latest post from my ‘main’ category and thought it would be nice if I could create a ‘highlights’ section for the category that deals with photos, using the thimbnails of the photos as links.

    I’m not savvy enough with PHP to know exactly what you are suggesting, but I would have thought that if it involves editing the loop that it must affect all posts in all categories. Is that right?

    Thanks again for your reply. I give what you suggested a go and see what I come up with.

    Cheers.

Viewing 10 replies - 1 through 10 (of 10 total)