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

  1. asmax111
    Posted 2 years ago #

    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


  2. Gabriel
    Plugin Author

    Posted 2 years ago #


    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