Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your comment. The new Arguments section allows you to supply default values for any shortcode parameter, but it does not have any conditional logic that would completely replace the PHP code in your earlier topic (Memory Issue cause by number of invocations?). It might help, but I don’t know if it completely replaces the code you wrote for your application. Let me know what you think.

    Thread Starter jeff9315

    (@jeff9315)

    What I meant was that I could have probably created a different template for each category. Then I wouldn’t have needed conditional logic. Although that would have been so many templates it would have been unwieldy. My PHP code is better when you have a lot of different query/order combinations. But if you only have a couple, then the new template enhancements will be great.

    My PHP code was my first attempt at a plugin (and my first PHP code in about 10 years) so, although it was very simplistic, I’m pretty proud of it ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Argument Substitution Parameters’ is closed to new replies.