• Resolved ookris

    (@ookris)


    Hey, is it possible to add the number of displays saved in the custom fields of each entry?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @ookris,

    Your question is quite vague and I have no idea what you’re trying to do 😛

    Anyways, you can use the wpp_get_views() function to get the views count of a given post or page.

    Thread Starter ookris

    (@ookris)

    I have a SNAP WordPress Plugin plugin that adds entries to socielmedia.
    I want to use it to publish popular entries from a given period of time. And for that I need your plugin to write the number of displays in custom fields.

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m sorry, I’m not really familiar with the SNAP plugin. You’ll have to ask its developers if its possible to modify the output (via filter hooks for example) to include the views count of the post.

    Thread Starter ookris

    (@ookris)

    The SNAP plugin has the option of filtering posts between the two using custom fields.
    Generally, the question is whether your plug can somehow save the number of displays of a given entry into custom fields?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks for the clarification.

    No, the plugin doesn’t store data in custom fields (post meta) out-of-the-box. Do step 1 from these instructions to store views count data into the postmeta table and you’re good to go.

    Thread Starter ookris

    (@ookris)

    Thanks for the help 🙂

    Plugin Author Hector Cabrera

    (@hcabrera)

    Don’t mention it 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom fields with the number of views’ is closed to new replies.