Forum Replies Created

Viewing 15 replies - 16 through 30 (of 50 total)
  • Hey,

    Have you try to change the settings of this plugin?

    Post-Views-Counter-2

    Hey,

    Have you read the other questions posted? there was similar question answered…

    https://www.ads-software.com/support/topic/meta-key-for-display-posts-to-filter/

    Hello,

    Sure I can try, firstly without knowing what builder you use (Elementor/Gutenberg/etc.. etc…) and other info about your WordPress structure it’s hard to give a very accurate answer since it vary based on what you use.

    1)Basically you need to go to the settings of this plugin and change few things there *(Screenshot added)
    2)Depending on your builder or theme – You need to add the shortcode [post-views] wherever you want the counter to be visible *(normally in the “loop” near the other meta data, as you showed in your screenshot)
    3)Done!

    Hope it helped you,
    If not then please explain more and maybe add a list of your plugins & the theme in use.

    Post-Views-Counter-1

    This is probably the one that will work:
    [display-posts meta_value=”post_views” orderby=”meta_value_num” order=”ASC”]

    BTW, this codes are all missing what should the query call for? it doesn’t know if you want all post or pages or what category or taxonomy, so one needs to specify what you want it to display…? otherwise it will show all it can find.

    So in that case the code maybe will look like this:

    [display-posts category=”cars” meta_key=”post_views” orderby=”meta_value_num” order=”ASC”]

    if not category=”cars” then taxonomy=”cars” or post_type=”cars”

    Change “cars” to any category of post you would want to show…

    or maybe try this one:
    [display-posts meta_value=”post_views” orderby=”meta_value_num” order=”ASC”]

    Would have been really good to know exactly what was happening when you have try the codes… but I’m almost sure that one of the given codes should work.

    Anyhow please let us know what worked for you, in case someone else finds themselves in similar waters.

    Hi Freelylw,

    Sorry for the long delay in response,

    I have to say I have never used the plugin you mentioned, but by looking at the code provided it seems as it should work as follows:

    [display-posts meta_key=”post_views” orderby=”meta_value_num” order=”ASC”]

    Or this:

    [display-posts wrapper=”div” wrapper_class=”my-grid-layout” meta_key=”post_views” orderby=”meta_value_num” order=”ASC”]

    Would you try and let me know?

    Alternatively ask the developer of the other plugin to check what can work.

    Worst case if this is not a super confidential project, I can try to help you by using TeamViewer or something similar to view the admin end together and see what would fix the problem.

    • This reply was modified 3 years, 6 months ago by Webzzz. Reason: Correcting text

    Hey, not sure exactly what you mean but can it be: [post-views]

    That short code will display the “view count” where ever you will add the code

    You will need to change in the plugin settings:

    Settings > Post Views Counter > Display > Set the “Position” settings to “Manual”
    Done, then just use the short code wherever you need it ??

    • This reply was modified 3 years, 7 months ago by Webzzz.

    +1

    Disclaimer!
    I’m not the developer of this plugin, nor am I affiliated to any mentioned plugins.

    BTW, if you wish further help with this just ask, I will try to help you with a solution that maybe is more specific to your setup.

    • This reply was modified 3 years, 7 months ago by Webzzz. Reason: forgot to add something

    Hey,

    I don’t know if you have already solve the problem or not, but I will add what I found to work for me recently.

    Solution 1:
    In one website/setup I use: Elementor + JetEngine + ACF + Post Views Counter
    The solution there was to use “Custom Query” like this ” {“orderby”:”post_views”} ”
    The code was added to a widget from “JetEngine” called “Posts”

    Solution 2:
    Other website/setup I used: similar to above but more complex structure and fully customized… There I needed the results to look in a specific way with dynamic functions, I have try ALL of the solutions provided by the developers and nothing worked also looked into the documents with no answer that worked.
    The solution in the end that worked for me was way simpler then I imagined:

    Use “Posts Query” with meta_key = “post_views” without the “”

    I hope this helps you and others having similar problems.

    Thread Starter Webzzz

    (@webzzz)

    Ok I found a fix for the missing translation. once again thank you for your time and for making such a beautiful plugin!

    Thread Starter Webzzz

    (@webzzz)

    And btw you are absolutely right, after doing some more checking and clearing .htaccess and reinstalling your plugin then clicking few times “save changes” the “required” fields come back to normal, besides the ones where it’s actually is optional it says “(optional)” without a way to translate it or remove it… Query Monitor log is the same as it was before. so it seems like something with the plugin and the theme.

    Thread Starter Webzzz

    (@webzzz)

    Hello Sanesh,

    Thank you for the fast response,

    I did “press the save changes” but the text “(optional)” is still there and I couldn’t find a way to translate it using WPML, went through all of the settings one at a time, nothing like “(optional)” exist to translate, not even when scanned the whole website ??

    Would you please suggest how to translate it? or how to remove it if nothing else?

    Btw that would be amazing if you would work with Flatsome to get the “Query Monitor” log fixed.

    Thread Starter Webzzz

    (@webzzz)

    Small update:

    I have installed “Query Monitor” plugin and it shows:

    
    Warning (Suppressed)	array_merge(): Expected parameter 1 to be an array, null given
    
    wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/class-awcfe-fields.php:288
    array_merge()
    wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/class-awcfe-fields.php:288
    AWCFE_Fields->{closure}()
    Unknown location
    array_map()
    wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/class-awcfe-fields.php:331
    AWCFE_Fields->getFields()
    wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/class-awcfe-front-end.php:421
    AWCFE_Front_End->get_checkout_fields()
    wp-includes/class-wp-hook.php:287
    apply_filters('woocommerce_checkout_fields')
    wp-content/plugins/woocommerce/includes/class-wc-checkout.php:265
    WC_Checkout->get_checkout_fields()
    wp-content/themes/theme-01-2021/woocommerce/checkout/form-checkout.php:60
    wc_get_template()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:293
    WC_Shortcode_Checkout::checkout()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:67
    WC_Shortcode_Checkout::output()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:72
    WC_Shortcodes::shortcode_wrapper()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:95
    WC_Shortcodes::checkout()
    wp-includes/shortcodes.php:343
    do_shortcode_tag()
    Unknown location
    preg_replace_callback()
    wp-includes/shortcodes.php:218
    do_shortcode()
    wp-content/themes/theme-01-2021/inc/helpers/helpers-shortcode.php:203
    flatsome_contentfix()
    wp-includes/class-wp-hook.php:287
    apply_filters('the_content')
    wp-includes/post-template.php:253
    the_content()
    wp-content/themes/theme-01-2021/page.php:33
    

    and

    
    Notice (Suppressed)	Undefined index: class
    
    
    Thread Starter Webzzz

    (@webzzz)

    BTW in the settings page of this plugin, I checked that all is ok and all fields look as they should where should be required it says so and the option “is required” is on…

Viewing 15 replies - 16 through 30 (of 50 total)