Advanced Post List
[resolved] Can i create new preset list with php code inside? (3 posts)

  1. yyyyyywhy
    Posted 4 years ago #

    this is really a cool plugin and bring me hope to realize the feature i want....thanks a lot for continuing to digging the list potential.

    in fact i want to put a button behind every post title in a post list page for collecting readers' feedback, such as vote or favorite etc.
    i tried to insert a line of php code frome other plugin providing link and button into the list item content field,but can't see the button in the preview...so i am wondering how can i make it? i am newbie and not a programmer...so please any one give me a hand or clue is appreciated.

    thanks in advance:)


  2. jjyepez
    Posted 4 years ago #

    You can't do it directly, but you can define your custom php functions and use them through [php_function name="{function_name}" param="{params_string}"] ....

    Refer to this topic for an example: http://wordpress.org/support/topic/plugin-advanced-post-list-using-shortcodes-in-list-content-section?replies=2

    Remember that the first parameter received through your custom function must be $post (it is sent implicitly), then your params_var.

    Hope this help.


  3. jokerbr313
    Plugin Author

    Posted 4 years ago #

    jjyepez, thank you for the reply and for taking the time to make a how-to topic in another thread. I had to take a bit of a break and let my mind unwind. So me being the only developer, I had to leave everything as-is for the time being, but at the current moment, I'm back to getting another update ready for release to further stabilize version 0.3.

    yyyyyywhy, sorry for the late reply. I think this question was asked during a development period and I didn't have any useful info I could give at the time. The function he mentions though is a function from Kalin's Post List that I had preserved, but haven't had the time to fully check out and create a wiki for.

    Anyways, thanks for the comments.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Post List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic