Wordpress problem views number count only logged users - php

I have a problem with the website, The problem is the number of views counting only logged users
Note: I'm note using any plugin for counting views
Thank for your help
I have tried this solution
Settings > Reading > Save Changes
But still the some problem

Related

Wordpress User restriction without any plugin

I'm currently stuck with a problem regarding user authentication in Wordpress, and i think i need some guidance in how you would solve this. So any feedback is much appreciated.
First of all, my setup is pretty basic and i create pages and posts with ACF - I try to minimize the use of Wordpress plugins since 99% it brings a messy experience and functionality.
My question:
I want to create a simple Wordpress "application", where a user that is signed in:
Belongs to a Company.
Can only read assigned Reports (CPT).
Every page and post are restricted to logged in users only.
The users reports (CPT) is only shown in the frontend - a user (company) should not have access to wp-admin
I believe the easiest way to do this would be to make a multisite, creating a subdomain:
company.website.com/reports
My concern is that this would eventually create a lot of WP installations and if i update one of my Custom fields (ACF), i would need to update this on each installation.
How would you solve this issue? Would the subdomain be the right solution?
Thank you for helping out.

Assign 6 digit sequential member number to role upon registration (not $user_id) - Wordpress

I am working on a membership site with wordpress, buddypress, members, acf pro, woocommerce, a custom post type and the X theme.
All users will have a buddypress profile. However, an artist role will have access to post to the custom post type. I already have a custom post type setup. Currently, when a user signs up through buddypress registration form and they click the “I am an artist” radio button, they are automatically assigned the wp role named “artist”.
What I still need upon registration, to generate a sequential membership number for users with the artist role that will be displayed on the front-end. This number needs to last forever and not be affected if a user or profile is deleted. In other words, if a user is removed we don’t want everyone else’s number to change.
WordPress user ID will not work for several reasons. Primarily, because it is associated with all users and the signups will affect the sequential order of the artist numbers. It is important that artist numbers start at 000001 and increment up from there.
I am not a developer/coder. But I am not a total noob either, though I may need a little hand-holding to get through this. I have done an immense amount of searching for an answer to this situation but it seems that I must reach out for help. If you know how to do this I humbly request your assistance.
I am open to this number being assigned by php or by the database. I am also open to it being separate from buddypress, though if it is with buddypress, I still only want the artist role to utilize the membership number.
Below are some of other posts I have found that other people have attempted to do something similar. The fact that I need this to be role-based makes this even more complex.
I really need help and I want to learn. Thank you for your time.
How to generate sequential numbering in wordpress
https://slickmedia.co.uk/blog/glenns-blog/sequentially-number-wordpress-posts/

Wordpress Whitescreen before login

I have an issue with a WordPress website where I am getting a white screen on only specific pages (which seems to change randomly from time to time). I have noticed that after logging in to the WP-Admin account I am then able to view the pages with no issue. However swapping to another browser/computer that has not logged in still has the white-screen.
Here are some notes for things I have looked at.
Debugging is on, and there is no page related errors/etc.
I increased the memory just in case, should not be the issue.
Disabled all plugins.
Disabled the theme I was using and used a default instead.
I have a feeling that it has something to do with the plugin called Sucuri, but I cannot confirm this and have tried disabling it. I am looking for any sort of troubleshooting I might be missing, or ideas on how to fix this.
Edit I should clarify, the pages change randomly but are consistent. E.g. currently a certain page is giving me a white screen, and its the only one. However last week it was my login page, and a month before that it was a separate page.

OpenCart Theme 'MarketShop' slider issue

I'm using an opencart theme called MarketShop and as part of the theme it comes with a featured slider on the top of the website. It was all functioning correctly this morning, I went to edit the pictures by removing the original module and recreating it with a different banner. Now the module has been created but its not showing up on the website.
What have I done wrong?
I believe the two modules have identical information but I could be incorrect.
I've tried reupoloading all files from the theme and just skipping any that were identical in order to try and find the missing file with no luck.
Any suggestions besides doing a factory reset are much appreciated!
UPDATE:
Doesn't seem like anyone is able to determine the fault... Going to do a fresh install unless someone wants to first login themeselves and see if they can find the problem?
I managed to resolve this issue myself finallly after a LOT of playing around!
Steps I took to fix this issue were as follows..
First I uninstalled the module and reinstalled (It deleted all tests I made + the original demo items).
Then I clicked the install button again and went to edit.
I added one slideshow item and choose my banner that I'd setup earlier via the banners link in the admin panel.
I then went to LAYOUTS which is found next to the banners link or after you click save in modules at the top a hyperlink to layouts is offered.
Upon going to the layouts section and playing around here for even more time I worked out I needed to go into the Homepage file and click edit (NOT THE ONE NAME DEFAULT)!
I tried this numerous times with the DEFAULT page (Note that my store is even set so that the default theme is default which led me to believe that was the right page, which it is not.
So go into homepage and click edit.
Then add one module with the blue plus. Select the module you've just created earlier. Position it where you want it on the page (to get it to work for me I selected "Content Top" and Sort Order I set to 1 (The other two modules had sort orders of 2 and 3)
And that was that, problem solved!
Hopefully this will help anyone else with similar issues.

Displaying products on home page

I've been searching around on Google to find an accurate tutorial that explains how to display products on the home page but so far nothing is working!
The latest products block doesn't work; the only thing that I've managed to get working is a single link to a product which is not very attractive.
Anyone know how to display products, featured products, etc. on the home page?
ps. I'm using Magento 1.5
There are many excellent tutorials on the web on this topic. I would recommend the Inchoo blog post as first option.
If you have specific issues, please report back with a full trace of the errors that you are receiving, what you've tried, etc.
In Admin > System > Configuration > Web > Default Pages you could, say, set catalog/category/view/id/10 to have the default route resolve to a category with entity id of 10.
You'll need to consider duplicate content (SEO) issues if you want this to show elsewhere on your site.

Categories