WordPress.org

Forums

myCRED
use category id from a custom file template (2 posts)

  1. asmax111
    Member
    Posted 1 year ago #

    Hello
    First, thank you for your incredible and very helpfull plugin.
    My question is: Can i use the variable %cat_id% from a custom file template?
    I've already added this sentence to my "models.php":
    'cat_id' => __('The category ID', WPFB),
    ==> the result is that i have the variable in the list of variables to use, but it is always null!!
    can you help me? ^^
    Thank you

    https://wordpress.org/plugins/mycred/

  2. Gabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi.

    You can add custom template tags in myCRED for log entries but in order to do so, you would need to know which log entires will contain this tag along with where in the log entry you can find the information that this tag replaces.

    If you can give me some information on where you use this tag, i.e. what hook log entry this is used in, I can be of better assistance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • myCRED
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic