BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 476
    Venutius on in reply to: Categories for media #12906

    Hi brajesh,

    Thanks for the tip, it’s now finding the category lookup. However I’d really like to get my custom taxonomy ‘music’ to work. right now it is coming up with a not found error – looking for the page http://www.site.com/music/track I thought this might be because I don’t have a music.php template so I created on but unfortunately that’s not working, any ideas?

  • Participant
    Level: Master
    Posts: 476
    Venutius on in reply to: Categories for media #12889

    Ah, it’s not that simple it seems. I assigned a custom taxonomy to attachments and assigned taxonomy terms to each of the audio files. I have a taxonomy sidebar widget which is displaying the taxonomies but clicking on them just returns a page not found error.

    I also assigned the default categories to attachments but whilst the items appear in the categories list, clicking on them just returns a heading of the term with no content.

    I think I need a template page to display the attachments (attachments.php or similar) but I’m lost as to what to add into this to display (1) the list of attachment category items, and (2) the single attachment view.

  • Participant
    Level: Master
    Posts: 476
    Venutius on in reply to: Categories for media #12888

    Sorted – just assign a taxonomy to attachments

  • Participant
    Level: Master
    Posts: 476
    Venutius on in reply to: [Resolved] A Couple of problems #12857

    Hi Brajesh,

    I’m not sure what happened but today it’s all working! maybe I forgot to save my edit before transferring it to the server? I’m not sure. But anyway, issue resolved.

  • Participant
    Level: Master
    Posts: 476

    Sure, and thanks again for your help

  • Participant
    Level: Master
    Posts: 476

    It works pretty well with Simple Front End Post, I was expecting a problem, but if the user enters a post with a duplicate title it takes them to the backend edit post page and gives them the message that they can’t post with the duplicate title. That’s a lot better than I was expecting. In an ideal world it would flash a warning while the user was creating the post in the front end but that’s probably for another day.

  • Participant
    Level: Master
    Posts: 476

    Here’s the link to my new plugin. A simple one to start me off – https://wordpress.org/plugins/avoid-duplicate-titles/

  • Participant
    Level: Master
    Posts: 476

    That fixed it Brajesh, thanks for that, is the $typenow variable a bit hit and miss?

    By the way, my new plugin’s been accepted in the WordPress directory, I’m very pleased to see it listed.

  • Participant
    Level: Master
    Posts: 476
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 476

    I wrapped the update_post_meta commands in a check to make sure the post type was my type but that did not work.