make wordpress posts change content dynamically -


is there way customise wordpress blog post changes based on user?

eg. when showing post around salary , bonuses on company blog, i'd customise of text based on employee level (director, executive etc) - example:

  • a paragraph of text pension contribution should appear directors reading page
  • the bonus amount should change based on employee level.

i don't want create several pages per category (eg. 1 page directors, 1 execs etc) - have 1 blog post variable fields?

the codex has great function outlined, current_user_can
http://codex.wordpress.org/function_reference/current_user_can

as wp_user_query
http://codex.wordpress.org/class_reference/wp_user_query

you can use both of these accomplish goal.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -