• Resolved JCLondon

    (@jclondon)


    Hi there,

    I am trying to move the price from priority 10 to 25 by doing this

    remove_action('propertyhive_after_search_results_loop_item_title', 'propertyhive_template_loop_price', 10);
    add_action('propertyhive_after_search_results_loop_item_title', 'propertyhive_template_loop_price', 25);

    The add_action works correctly but the remove_action does nothing. I have tried the same with propertyhive_template_loop_summary, 20 or propertyhive_template_loop_actions, 30 but nothing happens.

    What could that be?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Property Hive

    (@propertyhive)

    Hi there,

    Out of interest, do you have our Template Assistant installed and have you at any point amended the fields that show under ‘Property Hive > Settings > Template Assistant > Search Results > Fields Shown’? That would give them different priorities than the default ones.

    That’s the only thing I can think that might cause this not to work. To rule this out, what you can do is navigate to ‘Property Hive > Settings > Template Assistant > Search Results’ and untick all the boxes in the ‘Fields Shown’ section and save. That’ll rever tthings back to default.

    Let me know and we can go from there.

    Steve

    Thread Starter JCLondon

    (@jclondon)

    That was it. Thank you so much Steve!

    • This reply was modified 5 years, 8 months ago by JCLondon.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove action not working’ is closed to new replies.