• Resolved TheDani

    (@thedani)


    I have some trouble with one record and many songs. For example, record Pink Floyd – The Piper At The Gates Of Dawn (40th Anniversary Complete Edition) with song 11+20 songs is some kind of “bugs”.

    See here with song “Interstellar Overdrive” is backend /wp-admin/post.php?post=7&action=edit. I want to have all of the other songs too. I wish to have one record and many songs/alt.songs, but unfortunately I cant:

    Records “The Piper At The Gates Of Dawn (40th Anniversary Complete Edition)”
    /wp-admin/post.php?post=20&action=edit (record)
    On More Fields ->
    Songs: Search Songs…, //record has original 11 songs and 20 alt.songs
    Songs:
    1 Astronomy Domine (Mono) (links to …post=1…)
    2 Lucifer Sam (Mono) (…post=2…)
    3 Matilda Mother (Mono) (…post=3…)
    4 Flaming (Mono) (…post=4…)
    5 Pow R. Toc. H (Mono) (…post=5…)
    6 Take Up Thy Stethoscope And Walk (Mono) (…post=6…)
    7 Interstellar Overdrive (Mono) (/wp-admin/post.php?post=7&action=edit)
    8 The Gnome (Mono) (…post=8…)
    9 Chapter 24 (Mono) (…post=9…)
    10 The Scarecrow (Mono) (…post=10…)
    11 Bike (Mono) (…post=11…)

    12 Astronomy Domine (Stereo) (…post=1…)
    13 Lucifer Sam (Stereo) (…post=2…)
    14 Matilda Mother (Stereo) (…post=3…)
    15 Flaming (Stereo) (…post=4…)
    16 Pow R. Toc. H (Stereo) (…post=5…)
    17 Take Up Thy Stethoscope And Walk (Stereo) (…post=6…)
    18 Interstellar Overdrive (Stereo) (/wp-admin/post.php?post=7&action=edit)
    19 The Gnome (Stereo) (…post=8…)
    20 Chapter 24 (Stereo) (…post=9…)
    21 The Scarecrow (Stereo) (…post=10…)
    22 Bike (Stereo) (…post=11…)
    23 Arnold Layne (…post=23…)
    24 Candy And A Currant Bun (…post=24…)
    25 See Emily Play (…post=25…)
    26 Apples And Oranges (…post=26…)
    27 Paintbox (…post=27…)
    28 Interstellar Overdrive (Take 2) [French Edit] (/wp-admin/post.php?post=7&action=edit)
    29 Apples And Oranges (Stereo Version) (…post=26…)
    30 Matilda Mother (Alternative Version) (…post=3…)
    31 Interstellar Overdrive (Take 6) (/wp-admin/post.php?post=7&action=edit)

    This one works, but I don’t want it:
    Record /wp-admin/post.php?post=20&action=edit
    On More Fields ->
    Songs:
    1 Astronomy Domine (…post=1…)
    2 Lucifer Sam (…post=2…)
    3 Matilda Mother (…post=3…)
    4 Flaming (…post=4…)
    5 Pow R. Toc. H (…post=5…)
    6 Take Up Thy Stethoscope And Walk (…post=6…)
    7 Interstellar Overdrive (/wp-admin/post.php?post=7&action=edit)
    8 The Gnome (…post=8…)
    9 Chapter 24 (…post=9…)
    10 The Scarecrow (…post=10…)
    11 Bike (…post=11…)

    23 Arnold Layne (…post=23…)
    24 Candy And A Currant Bun (…post=24…)
    25 See Emily Play (…post=25…)
    26 Apples And Oranges (…post=26…)
    27 Paintbox (…post=26…)

    The other songs are taken.

    So I ended up with at least four different versions of the same song, unfortunately (/wp-admin/edit.php?post_type=song). E.g.:
    * Interstellar Overdrive (Mono) (/wp-admin/post.php?post=7&action=edit)
    * Interstellar Overdrive (Stereo) (/wp-admin/post.php?post=18&action=edit)
    * Interstellar Overdrive (Take 2) (/wp-admin/post.php?post=28&action=edit)
    * Interstellar Overdrive (Take 6) (/wp-admin/post.php?post=31&action=edit)

    There is few solution or “solution” to fix this. So first of all: Can I redirect from alt.songs to on original songs? that is for example Interstellar Overdrive (Stereo) (/wp-admin/post.php?post=18&action=edit) redirect to -> /wp-admin/post.php?post=7&action=edit – Interstellar Overdrive (Mono)? And how?

    Example: backend /wp-admin/post.php?post=18&action=edit and header(‘Location: /wp-admin/post.php?post=7’) or get_permalink() and header(…post=7…); ? I dont know. If you know what I mean.

    Pods:
    /wp-admin/admin.php?page=pods&action=edit&id=16 (record)
    Relationship [type=nick] >> Songs (song) [object=post_type-song]

    /wp-admin/admin.php?page=pods&action=edit&id=17 (song)

    File:
    single-song.php
    single-record.php
    template-parts/content-song.php
    template-parts/content-record.php

    • This topic was modified 2 years, 12 months ago by TheDani.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @thedani

    I’m not sure I follow your issue. But I guess it’s that you want to link a song to an album that has several version right?

    If so, I’d say you should link the correct one to the album on the correct locations and add an extra field to the “Songs” post type names “Alternative versions” and link the other versions to each other.

    In any case, you cannot add the same relationship to an album multiple times. The relationships should all be unique.
    I also believe this is the correct behavior in your case since the songs are actually different versions, even if it’s the same song. For that reason I’d say these should be different posts and you can link then together as mentioned above.

    Cheers, Jory

    Thread Starter TheDani

    (@thedani)

    There are hundreds of song “Interstellar Overdrive” on various records (albums, EP, singles, reissues, compilation, live, alternative, etc). They have _almost_ identical, but they have variants/versions of these, 5:16 minutes, 16:46 minutes, etc.

    Example, I have chosen Interstellar Overdrive (Take 6) (/wp-admin/post.php?post=31&action=edit) on Piper at the Gates. So click on Take 6 (post=31), and then I have automatic redirect to original standard on Mono (post=7) ?

    So in the redirecting, I have chosen Take 6 (or Take 2, or Stereo or something else with Interstellar Overdrive), and automatically end on Mono:
    /release/piper-at-the-gates-of-dawn
    -> /song/interstellar-overdrive-take-6 (post=31)
    -> /song/interstellar-overdrive-mono (post=7)

    Or can I not have redirecting (piper -> take 6 -> mono), but instead I get manual link (a href) on Take 6, and then click link (a href) again to Mono ?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @thedani

    Sorry I’m not sure I understand the question here.

    Do you want to redirect all variations to one single version?
    If so, this cannot be done with Pods, you’ll have to create some form of relation ship between all these items and redirect by code.

    Cheers, Jory

    Thread Starter TheDani

    (@thedani)

    Ok, it can not be done with redirection with Pods either.

    I’m thinking on variant/version on the song, e.g.:
    Band: Pink Floyd
    Record: Cambridge Station
    Song: Interstellar Overdrive
    Variant: Live In Stockholm 1967

    Example, variations/versions is take 2, take 6, stereo, science fiction, scene underground, live, etc. on a standard variation – in this case it is mono (Interstellar Overdrive).
    One to many in database. 1 is variation mono. Many is take 2, 6, stereo, live, etc

    Or only text with insert/edit link.

    But thank you anyway.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @thedani

    As I mentioned in an earlier post, I think this should be possible using bi-directional relationships between these versions.
    You could add another field to set the “main” item.
    Each time a user gets on a variation you can then create a redirection in PHP to make sure the user gets on the correct page.

    Alternatively you could allow pages for all these variation on which you set the same content.

    Cheers, Jory

    Thread Starter TheDani

    (@thedani)

    Finally done it.

    See if you can understand what I mean (picture)
    https://ibb.co/4mYMykR

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘One record and many songs are kind of bugs’ is closed to new replies.