• Resolved wildlife77

    (@wildlife77)


    I am trying to add a Ditty news ticker to the site I’m developing. I put the shortcode into an HTML header section of my theme (Customify) that runs other shortcodes but your’s only shows a link that says “Edit Ditty”. I also added the shortcode to a page instead of this header area and it shows the same “Edit Ditty” link. This link leads to the admin page to edit the ticker settings. In the admin area, the ticker I’ve set up is displaying correctly. I have tried Troubleshooting mode on the site and it displayed the same way on the front end. Please let me know what I need to do to get this working.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter wildlife77

    (@wildlife77)

    I’m now seeing that the “Edit Ditty” link is only visible to logged in admins. Regular end users see nothing in either location on this page.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    I created a video showing how to get it displaying in the header of your site: https://www.loom.com/looms/videos/Customers-59fa10bc0ea84ecb8971d689bbd739fd

    It boils down the parent elements of the Ditty not having any width for it to fill, so the width of the Ditty is 0.

    The Ditty that is contained within your content seems to be working fine, but I believe the text color is set to white, so it’s invisible on the white background of the page.

    Let me know if you have any question.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    The Edit Ditty link is shown only to logged in users as a quick way to get to the Edit page for it from the front end. This link can be disabled on the Ditty > Settings page if you wish.

    Thread Starter wildlife77

    (@wildlife77)

    I’m seeing that the Ditty ticker in the content is working as you said. I thought I had the settings right, but I see now that I didn’t have the background set.

    With your video, I couldn’t get to the page. When I clicked, it wanted me to set up an account. I did that, but didn’t see your video anywhere. But while logged in there, I came back and clicked on your link again and it took me to a page saying:

    You weren’t supposed to see this.

    Sorry, but this page doesn’t exist. Would be a great place for a video, though.

    I’m also talking to the theme support team on this and am relaying what you’ve said about the area width to them. I’d still like to see your video though to see your suggestion.

    Thanks for the assistance.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    Sorry about that last video. I must have deleted accidentally. Here is a new one: https://www.loom.com/share/d06ea4f0d04e49cf910283b557da73c8

    Thread Starter wildlife77

    (@wildlife77)

    TOTALLY PERFECT! Stretching it to take up all the space to the left of the social icons is exactly what I would have asked about next if you hadn’t done it. It’s working now. Thanks hugely for the help.

    OK, now that brings me to the next question. Let me know if I should start a new ticket for this or if you can answer here. We are currently using a shortcode to display the Ditty Ticker using the defined content set up in the settings. This is sufficient for how we’ll use this. But if there’s a way to take it to the next level by feeding the content dynamically through a View built with the Toolset plugin, that would be even better.

    To do this, we’d need to have the code that gets executed by the shortcode to display our text supplied in the settings. I’m not seeing it in the page source code though. If we could get what executes for this ticker, then we could put that into a Toolset View and replace the item text that currently says “2nd Ride Event” and “Club Picnic – March 25th – Beck Ranch Park” and instead use the Toolset field that displays our Ride titles as links [wpv-post-link] and have that in a loop. The loop would then add all Rides that meet the defined criteria in the query filters we’d set up. If we can do this, we’ll add a custom taxonomy to our Ride content type called “Add To News Ticker” and then set up a query filter to only display rides where that taxonomy is set to yes. We could also set up a query filter to only display rides with start dates greater than or equal to now so rides that are in the past will automatically remove themselves from the ticker. Then we’d have a ticker displaying all our ride titles that we want on there, as links to the individual ride pages, and in a controlled way that can be defined on the Create Ride page.

    Do you think this is doable? I’m guessing everything with Ditty Ticker is done through javascripts, so I’m not sure if I’ll be able to pull that into a Toolset View as I’m hoping.

    If we can do this it would automate what goes in the ticker in a more preferential way that to add and remove items manually. No problem if you’d prefer for me to file this as a new ticket on here.

    Thanks again for the huge assist in getting this working for us.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    It sounds like you’re looking for a way to dynamically populate a ticker with custom queried post data? If so, I have an extension that can help you with that: https://www.metaphorcreations.com/ditty-posts-ticker/

    Although, it’s possible I may need to make a small update to the functionality to ensure queries by custom field dates can work with “today’s date” as opposed to just a defined date. If your posts are using the post date for the ride date, then you could query by posts status “future” and that should work.

    Thread Starter wildlife77

    (@wildlife77)

    Yeah, that looks like it could probably accomplish the goal, so long as it allows us to use custom post types added with Toolset and not just default Posts from WordPress. We have a custom post type called Rides with a custom field group.

    The date field is the one used by Toolset and allows us to set the date and time together. I know I’ve needed their support help in the past regarding something with the formatting of their date field though, so I’m not sure if it would play well with your plugin without needing to do something else to make it work.

    I’ll run it by my client. Your price is right, but I’m not sure if they will want the added license expense just for this. We’ve already spent a fortune on other premium plugins getting everything else we’ve needed done and they’ve been balking at adding more costs for some other features they’ve asked for. This is a feature they didn’t ask for but was just my own idea based on my knowledge of the sort of thing they will want to use the Ticker to display. I was going to surprise them with it if it would have been easily achieved. Having this dynamic functionality that can be controlled through the Edit or Add Ride page to automatically add ticker items would be sweet.

    Oh, here’s another possibility to achieve this that I’ll ask you about. Toolset can create Views that will show and format the output the way I’d want to show it. I can set the output to display as a single line of text links with separators between the items. That view can then be executed anywhere with a shortcode. Does your Ditty Ticker plugin allow for a single item to be a shortcode to be executed instead of supplied text? If so, it can then display our single View as the output and the formatting for what gets included would be done on the Toolset side. I’m certain I can achieve our dynamic output goal that way. What do you think there?

    Plugin Author metaphorcreations

    (@metaphorcreations)

    Yes, you can use custom post types with Ditty Posts.

    You can also include a shortcode into the content of a Default post type, so if you only need one item this would work.

    Thread Starter wildlife77

    (@wildlife77)

    Awesome! I designed the View in Toolset and inserted the View shortcode as a new Ditty Ticker item and it is working. So we can now have the ideal system for this. Thanks so much!

    Plugin Author metaphorcreations

    (@metaphorcreations)

    You’re welcome, glad to help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Shortcode not working’ is closed to new replies.