Issue with custom plugin

Your plugin just creates a widget, you won’t see anything else in the Dashboard. If you drag the widget into a widget area, you’ll see all of the options to configure it. one other issue you will potentially have is the way you’re including javascript for your widget. if you use this with another plugin … Read more

rename index or homepage

You’re creating a loop that you can’t break out of … I think what you are saying is you want a visitor to go to domain1.com/index.html and then choose to go to domain1.com/index.php (WordPress CMS) or domain2.com/index.php Static Homepage in WordPress You’re best off to create a Static Homepage in WordPress and have links on … Read more

Adding if statement to content for homepage

Check for is_front_page() and if you want to catch the first page only inspect get_query_var( ‘paged’ ) too: if ( is_front_page() and 2 > get_query_var( ‘paged’ ) ) { // we are on the first page of the front page }

How to avoid duplicate Url for the home page

From the comments: What are your settings under Dashboard -> Settings -> Reading. Specifically, what are your Front Page Displays, front page, and posts page settings? And your reply: exactly this is the point, the client has used a Theme called Choice and in the Theme Frontpage Settings there is this page selected :”Welcome to … Read more