Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Charging by Word Count
    Thread Starter theclimbingdrums

    (@theclimbingdrums)

    Ok, so I’ve decided that the best thing I can do is to pull the word count from the database on a secondary page in which users will see the price of the service and click a button that will then take them to Paypal. The only issue I’m having is figuring out how to pull a field from the cforms plugin (https://www.deliciousdays.com/cforms-plugin/). I’m not the best with writing a sql statement to access the database (I’m not sure if that’s what needs to happen or if I can use a php call like you would with the Advanced Custom FIelds plug [https://www.advancedcustomfields.com]).

    Can anyone get me started or show me some documentation on how to pull a field of data from cforms in my WordPress database?

    Forum: Plugins
    In reply to: Charging by Word Count
    Thread Starter theclimbingdrums

    (@theclimbingdrums)

    That’s a great point, something I hadn’t thought of, so thanks for that.

    Any thoughts on how to accomplish all of that?

    Thread Starter theclimbingdrums

    (@theclimbingdrums)

    Ok, for anyone who comes across this I’ve figured it out (and feel quite sheepish, to be honest).

    It’s as simple as using .current_page_parent for regular pages that have parentage and .current_page_ancestor for blog pages. I had read this elsewhere and must not have understood that these classes are dynamically generated by WordPress, so there you go.

    Thread Starter theclimbingdrums

    (@theclimbingdrums)

    Thanks for the quick response!

    I’m not sure I’m exactly following though. Do you think you could possibly post the code?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)