• Resolved deniswporg

    (@deniswporg)


    Hi,

    In the FAQ page, you give the code to add a third filter menu.

    Please tell me where I must add that code example to get the third filter menu?

    Thank you.

    Denis.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter deniswporg

    (@deniswporg)

    I added the code at line 217 in the file attachment-taxonomies and I got the following error message:
    SYNTAX ERROR, unexpected T_CLASS, expecting T_FUNCTION or T_CONST

    and I got the following error when I tried to activate the plugin:

    Fatal error: Constant expression contains invalid operations in /home/chicsele/public_html/wp-content/plugins/attachment-taxonomies/attachment-taxonomies.php on line 330

    Last point.
    When a plugin update will be required, will it affect the code lines added ?

    • This reply was modified 7 years, 2 months ago by deniswporg.
    • This reply was modified 7 years, 2 months ago by deniswporg.
    • This reply was modified 7 years, 2 months ago by deniswporg.
    • This reply was modified 7 years, 2 months ago by deniswporg.
    Thread Starter deniswporg

    (@deniswporg)

    I tried to put the code in the functions.php file and unfortunately I can not login to the admin anymore. So I do not know where to add the lines in your example.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Example Code (adds an attachment taxonomy called “Location”):’ is closed to new replies.