Tag Info

New answers tagged

0

To explain in short, many theme authors (I do this as well) tend to organise their functions in smaller, more manageble files outside of the normal functions.php file. It makes locating a certain function easier, and it also organise and group functions together which relates to a certain aspect regarding the site Quick example: In my theme, I have a file ...


1

When it comes to the template hierarchy, WordPress will indeed look in the child theme directory before loading from the main theme. For all other non-specific WordPress files (like functions and 3rd party includes), it's entirely up to the main theme to decide how to load them. Unless the theme is using locate_template to load these includes, or is ...


0

Just change only function that you want to edit. See this post 1)Copy (in full) the function you want to override from the parent theme. 2) Paste it into functions.php in the root of your child theme’s folder. If functions.php doesn’t exist, create it. 3) Rename the function from parent_theme_function to child_theme_function. 4) Deactivate the parent ...


0

I have found the answer in another thread. Passing Variables through locate_template Essentially the WordPress function get_template_part changes the scope of the variable $user_choice. PHP default behaviour when using include() is that the variable from the current script is still available in the included file. However because get_template_part() is a ...


0

I'll put my money to it and say it has something to do with this line 'eventDisplay' => 'all', Can't make sense of what this line actually do. I would just remove it. Also, just a tip, do not use hyphens (-) in taxonomy or custom post type names. They will definitely be troublesome if it comes to custom templates. If you must, use an underscore (_) ...


0

You could use a plugin like JSON API to create an endpoint on your WordPress installation and access it from your PHP site with Javascript. You'll still need to style it however.


-1

You might have tried to use their file manager with Google Chrome, as it allows you to upload folders as well as files using a drag and drop method.


0

I discovered some useful resources about GoDaddy hosting and its malware screening: The files in question were uploaded to the GoDaddy server, but they were deleted by GoDaddy without a Failed Upload notification. Here is what comes up in FileZilla Command: STOR class-wc-download-handler.php Response: 150 Accepted data connection Response: 226-File ...


0

This is common issue when migrating from one host to another. You have those errors because path to include file is not correct (path do not exist on new host). Maybe you used absolute paths to files on old host, now, on new host path is different and that is why you have those errors . OR, those files are not moved correctly from old host to new host. What ...


0

You add your _setup function to wp_head without priority, so it's given priority of 20. All of the actions you are trying to remove within that function either have a higher priority (lower number), or same priority but are already in the queue ahead of yours, so when your _setup function runs, they've already sent their output. There's no reason to wait ...


2

You ask: How does that work ? As far as I can read it, it only specifies not to rewrite certain urls (using -), These files are included within the WordPress PHP scripts, so there's no need to access them in the browser, but notice the rewrite flags. Here's some information on the F, L and S flags from the Apache docs: Using the [F] flag causes ...



Top 50 recent answers are included