WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Getting Custom Fields to link to a page listing all pages with that custom field (7 posts)

  1. Daniel Mount
    Member
    Posted 4 years ago #

    Hi! I'm a longtime WordPress user, working on building a new (non-blog) site using WordPress 2.8.6 as the Content Management system (theme: Wasteland 1.3).

    Here is a sample page on the test server:
    http://southerngospelblog.com/freehymnal1/archives/it-is-well-with-my-soul/

    Here's what I'm trying to do:
    Much like a tag, I would like someone to be able to click on the author name and be taken to all songs by that author, and ditto for other custom tags.

    Is there a plugin that can do this?

    I have spent this evening and yesterday evening searching through past topics and plugin descriptions. I've tried probably a dozen different things, but without success. So I thought I'd ask.

  2. MichaelH
    Member
    Posted 4 years ago #

    WordPress automatically does the author archive thing. See Template Hierarchy, Author Templates, wp_list_authors(), and the_author_posts_link().

    Not aware of something for custom fields, but if it's tags your are talking about, then again, WordPress does that natively, so see Tag Templates, the_tags() , and wp_tag_cloud().

  3. Daniel Mount
    Member
    Posted 4 years ago #

    Thanks! Yes, I have used the author thing at various points.

    Tags isn't exactly what I need ... I think.

    I'd like something that I can code to display like this:

    * Author: Horatio G. Spafford
    * Composer: Horatio G. Spafford
    * Year: 1883
    * Language: English
    * Meter: 11.8.11.9 with refrain

    ...and clicking any of those will take you to a page of everything by that author or composer, from that year, in that language, or in that meter.

    Now tags can do that, but what I'd also like to do is have a general index page for each category. So for authors:

    [Authors page]

    [A]
    [authors' names who begin with a ...]

    [B]
    [authors' names that begin with b ...]

    And so forth. Is this possible with either tags or categories?

  4. Daniel Mount
    Member
    Posted 4 years ago #

    So, if I may, let me ask another question:

    I know I can subdivide categories like:

    Categories
    -Authors
    --A
    ---Alfred Ackley
    ---Albert Brumley
    --B
    ---Bill Gaither
    -Composers
    --A
    ---Alfred Ackley
    ---Albert Brumley
    --B
    ---Bill Gaither
    -Years
    -1660
    -1661
    -1662
    -1663

    ...and so forth.

    Is there any plugin that will allow me to display which author(s) are selected in the category under Author, which composer(s) under composer, which year(s) under year, et cetera, with the final result looking clean and neat like this?

    * Author: Horatio G. Spafford
    * Composer: Horatio G. Spafford
    * Year: 1883
    * Language: English
    * Meter: 11.8.11.9 with refrain

    And can I build a page that just displays all results from a certain category, like authors, preferably nicely indexed?

  5. MichaelH
    Member
    Posted 4 years ago #

    Using categories or tags would be nice because you can have hierarchy with categories and both allow you to present links (e.g. with the_tags or the_category) that when clicked on take you to archives (other posts) that match that particular category or tag. But thinking about it, not sure that categories or tags are the right solution for you.

    Two other possibilities:
    1. Using Custom Fields along with a plugin such as Custom Field Taxonomies. This plugin uses the word Taxonomies but it is different than what's discussed in then next option. The nice thing about Custom Fields is the fact there are quite a few plugins available that give you good control over the entry (add/edit post) of that data (Author, Composer, etc)

    2. Use a relatively new thing, called custom taxonomies. Post categories, tags, and link categories are the native WordPress taxonomies. With the help of a plugin such as Simple Taxonomies or Custom Taxonomies, you might find better access to your posts. Taxonomies can have hierarchy (parent/child/grandchild relationships) if that is important.

  6. Daniel Mount
    Member
    Posted 4 years ago #

    Thanks!

    I spent 45 minutes or an hour experimenting with Custom Field Taxonomies. I'll give it another spin and see if I can figure it out this time.

    I'll experiment with those other two plugins. Thanks!

  7. Daniel Mount
    Member
    Posted 4 years ago #

    I've experimented with a variety of things over the past 2 weeks. I've tried following the steps here:

    http://justintadlock.com/archives/2009/06/04/using-custom-taxonomies-to-create-a-movie-database

    ...and it seems to be working most of the time. I'll be working out the kinks, but it seems like it's on the right path now. Thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic