In some requests, my theme’s index.php is displaying instead of my home page
In some requests, my theme’s index.php is displaying instead of my home page
In some requests, my theme’s index.php is displaying instead of my home page
It looks like you’ve constructed an URL relative to the template PHP you’re rendering, i.e. this code is in wp-content/themes/mycustom/index.php you want to load wp-content/themes/mycustom/admin/dashboard.php => relative URL is admin/dashboard.php? That’s not correct. URLs are relative to the URL the user is currently on in their browser, which may be /, or /category/post-slug, or /year/month/post-slug, … Read more
How can I avoid text only homepage loading?
The Theme setting issue after migration. Here are a few steps you can follow: This issue is WordPress side if migrated WordPress theme and settings are removed or reset. Homepage Settings: Go to Settings → Reading in the WordPress dashboard and ensure that your homepage is set to display a specific page or the latest … Read more
You really should be using custom posts to do what you’re trying to do, but to answer your question here’s a solution (put this in your functions.php file): add_shortcode( ‘job-posts’, ‘rt_list_posts_by_category’ ); function rt_list_posts_by_category($atts) { $a = shortcode_atts( array( ‘link1’ => ‘#’, ‘link2’ => ‘#’, ‘link3’ => ‘#’, ), $atts ); // arguments for function … Read more
WordPress does not require a frontpage be created in the backend: a theme with a front-page.php file can be completely hard-coded and not depend on blocks or widgets. Check your parent and child themes for a front-page.php.
Multisite homepage stuck to twenty-twentythree (only for logged-out users)
How to make an image appear then another takes its place and so on?
I assume you have an error (php or js) on your front page. In order to elaborate on the situation, you have to check the following things: Go to your home page and check any issues the Chrome Debugger Tool. Check the console tag specifically. Hope you might see something suspicious there. Check the front … Read more
There are some fundamental misunderstandings happening here, but importantly: The variables on the main query are what are used to decide which conditionals are true. E.g. will is_home return true, is is_search true? It does this by inspecting the query variables. It’s these conditionals and variables that are then used to decide which template should … Read more