WordPress.org

Forums

Short URL
[resolved] Custom post types/bbPress support (20 posts)

  1. maiki
    Member
    Posted 2 years ago #

    Hiya! I really dig the plugin. I was wondering if there was an easy hack to get it working with custom post types, specifically with Pods or bbPress.

    Would be a killer feature. ^_^

    http://wordpress.org/extend/plugins/shorten-url/

  2. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Three persons asks me for that feature and I will release it in the next version ...

    Do you want to beta test it ?

  3. maiki
    Member
    Posted 1 year ago #

    Sure! ^_^

    maiki@interi.org

  4. maiki
    Member
    Posted 1 year ago #

    I have the beta plugin you sent me working on a development site. Seems to be working fine. Took me a bit to figure out what the CPTs were called in bbPress: forum, topic, reply.

    One thing that I could use help on, is figuring out how to show the short links on the forum posts. They are obviously not loading whichever hook you use on normal posts. Additionally, my other custom post types don't even use the loop. I am planning on adding the link at the theme level, but is there something I can do to make it show up with the option in the plugin?

  5. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    No sure to understand your wish ...

    Do you want that the plugin displays all the Custom type available ?

  6. maiki
    Member
    Posted 1 year ago #

    There are checkboxes, for showing the shortcode on the posts, pages and custom type article. The custom type article isn't working on bbPress topics, or the Pods custom post types (Pods doesn't use the loop when showing templates).

    For the project I am working on, I am making a theme and can just use get_short_link() and see if that works, but you may have another way to show the URL.

  7. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    There are checkboxes, for showing the shortcode on the posts, pages and custom type article.

    Yes, that is true

    The custom type article isn't working on bbPress topics, or the Pods custom post types (Pods doesn't use the loop when showing templates).

    I do not see what is the link with the loop :(
    But I cannot say that I am an expert

    For the project I am working on, I am making a theme and can just use get_short_link() and see if that works, but you may have another way to show the URL.

    Yes indeed it seems a good way to do it.

  8. maiki
    Member
    Posted 1 year ago #

    I do not see what is the link with the loop :(

    I thought that might help you debug that. The checkbox for custom type articles don't show when I use the Pods template, and the only difference is that it doesn't have a loop in it. If that is not the case, do you know why it isn't working?

  9. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    The checkbox for custom type articles don't show when I use the Pods template

    I am so sorry but I do not understand this sentence ? Do you have a screenshot (by email if you want) ?

  10. maiki
    Member
    Posted 1 year ago #

    In the parameters there is a section entitled Where to display the short URL?. None of those options show the short URL on bbPress pages or Pods custom post types.

  11. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    And are you sure that this plugin creates a real custom type ?
    Not an expert

  12. maiki
    Member
    Posted 1 year ago #

    Yes, I am sure that Pods and bbPress does. They have shortened URLs created for them. It is just an issue of them not showing up as they do on posts and pages, with the boxes checked in the plugin's configuration.

  13. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Hum ... I believe that the bbPress or the pods pages "hide" themselves to avoid any renaturation of their look by other plugins ... This would be hard to overcome this issue :(

  14. Scott Kingsley Clark
    Member
    Posted 1 year ago #

    @maiki Are you using Custom Post Types or Advanced Content Types with Pods?

    Are you using core WordPress theming (single.php / archive-your_pod.php) or Pod Pages for your URLs?

  15. maiki
    Member
    Posted 1 year ago #

    Scott, I am using a CPT, and using Pod Pages for the URLs. I have a template showing pod content.

    Wasn't expecting you to show up. Any ideas on this? ^_^

  16. Scott Kingsley Clark
    Member
    Posted 1 year ago #

    @maiki I'm a bit more active when supporting my plugin than many others, I listen in on ANY mention of Pods on the forums and step in when necessary to provide extended support.

    Why are you using Pod Pages with your CPT? Custom Post Types automatically get yoursite.com/your-post-type/*/ so any usage of Pod Pages could be more of a headache than working within the constraints of Post Types and how they already function.

  17. maiki
    Member
    Posted 1 year ago #

    @Scott, I've been hesitant to answer, because there is an adversarial tone taken towards non-coders in the Pods forums. I've pieced together enough from the various tutorials around to figure out how to show my content using Pod Pages. I don't know how to do it any other way, and every time someone asks they are told that they need to do the coding themselves.

    I'm not a coder, but I like Pods over the other custom field plugins, it is the closest to CCK + Views in Drupal, which I understand really well, so I've just kinda hacked at it. I've read all the new docs, but I still can't figure out how to do it without Pod Pages and Templates.

  18. Scott Kingsley Clark
    Member
    Posted 1 year ago #

    Sorry if I ever came across with adversarial tones, that's definitely not the case from my side. I spend a great deal of my time helping people but I'm limited in exactly what I can do for each person.

    In short, you can use Pods in many different ways and while there are easier ways to do things, knowing how to do it in any way is going to be a process for any non-coder. I think you've done well so far, so I wouldn't sell yourself entirely short here. Drupal + CCK + Views is enough to give you extra credit on any development test :)

  19. maiki
    Member
    Posted 1 year ago #

    Thanks for the encouragement. I want to say that I know how difficult it is to get through the deluge of messages from folks that honestly won't even read the docs first, and just want someone to build their site for them. I also think that Pods is where its at, and I know in the last year I've been playing with it, it has gotten more polish in each release. ^_^

    Scott, do you know of documentation or tutorials that lay out using CPTs without Pod Pages? I've seen it advised often, but I don't know the first place to start. If I could get a high-level overview I could probably figure it out from there. One problem it might solve is the one in this thread, where the short URLs aren't showing on the Pod Page template I created.

  20. Scott Kingsley Clark
    Member
    Posted 1 year ago #

    We are working on individual sets of docs for each component, but there's no timeline on that right now. We're looking for people to help out with our docs because I've got my hands full with some hefty Pods 2.4 features that everyone wants.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Short URL
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.