Thanks for the example, unfortunately I couldn't get it to work - however I was able to use implode(',', $wlrs_cats['content_type']) to get what I was looking for. Thanks!
This outputs the category paths of the current item filtered by slug:
Thanks for the reply.
If I use perch_categories() or perch_category() how do I relate them to the perch_collection?
Within perch_collection('Opportunities' the admin might select one or all four categories, I'm looking for a way to expose the…
I'm trying to access a category set within a perch_collection, but when I run echo all that's output is the word Array?
(Code, 10 lines)
How do I output the full Array, I'm expecting to echo a string of all the selected categories.
When using perch:related it'd be great if the order can be changed within perch:related. At the moment the order is dictated by the order of items in the collection, the order can't be overridden within perch:related?
- Perch Runway is up to date
hus_hmd has created a very neat perch add-on which solves this problem.
Here's the code I'm using to output items from multiple collections
(Code, 11 lines)
Within my post--listing.html template I added <perch:content id="collectionKey" urlify>,…
Finally got around to trying this. It works, and you were right about MySQL 5.7 and strict mode. I followed the instructions in this article to turn strict mode off when using MAMP Pro.
You should be able to use an array of collections as the key.
(Code, 9 lines)
Although this might not work with MySQL 5.7 as standard, due to strict mode, though you should be able to update the settings as required
I'm working on a Perch Runway website that is likely to have a lot (a lot) of content added to over the next few years.
I'm trying to figure out the best way to structure it and would welcome any input.
There will be four main sections
There is so much support for Perch, everyone (in the Slack group) wants it to succeed and grow. The current buy once and receive free support/updates forever obviously isn't sustainable. I welcome a move to an annual license update.
However, it really…
I appreciate this isn't technically a Perch question
I'm using Sequel Pro on the Mac, after a bit of searching, it looks like I can use a Query like this to find and replace
(Code, 1 line)
- Is this a safe way to replace text in a database?