• I have an online portfolio for my site, and although it is not ENTIRELY images, there’s a section in which I’d like to show off images.

    As of now, I have it set up so that the thumbnail image is the excerpt and the full size image is the actual post. The post also contains detail relating to the image.

    What I’d like to do is format a simple 3 column gallery on the topic page. They would be listed by date, and maybe include 21 to a page (or so). I’d also like to have a small title below it, if possible.

    I can’t figure out an efficient way to do this. I’ve managed to “sort of” do it with sloppy CSS, but that’s not the same. I’d like to avoid a whole image gallery plugin, unless you think it’s necessary. Maybe some simple PHP code would accomplish this nicely (although I don’t know any PHP ?? … )

    Thanks for all your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • I suggest you re-use existing plug-ins and templates. This has been done many times before. If you asked me with WordPress aside, I’d probably recommend a gallery software which is the right tool for the right task.

    If you want to set up a photolog with WordPress, I suggest you do a Web search for “powered by WordPress gallery portfolio” or ‘flavours’ of that query. See what other people have done. Then again, plug-ins for photo management exist already, but they tweak a blogging software to do something it is ill-suited for. You needn’t code anything.

    Thread Starter forkyfork

    (@forkyfork)

    It’s not quite a photolog. A lot of the plugins I’ve seen are more geared to a photoblog that takes up the entire site. This is just a small section. I had difficult with the gallery integration type plugins.

    Couldn’t I just make a simple php loop or something?

    https://codex.www.ads-software.com/Template_Tags/get_posts

    There you go. Where are you gonna put the Loop at? Front page? Category page? ..? (There’s more specific solution if you could answer that.)

    Here’s what I would suggest.

    Put all image-related Posts in one category (e.g. “Portfolio”).

    Say, the category “Portfolio” has ID of 6, create a new file in your active theme folder and name it category-6.php.

    That file, category-6.php, will be used as a template to display the Post in category 6/Portfolio. The visitor will access it by going to https://mysite.com/?cat=6 or, with permalink enabled, https://mysite.com/category/portfolio. That link should be available when you list all categories you have in front page using some template tag.

    To start off, just copy the content of index.php in the active theme folder to category-6.php. Later you could adjust the markup in category-6.php to display 3-column or anything else you want.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simple Image Gallery Grid (Perhaps From Excerpts)’ is closed to new replies.