acchiappaprezzo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: funktion requerd installation problemsThe path /home/kreativa/www/www/ looks a little odd. Are you sure it’s not just /home/kreativa/www/ ?
Open your index.php file and add this bit of code right after the “<?php” line:
<?php echo getcwd(); ?>
Now reload your website. Copy the text that appears at the very top of the page and paste it here. Then delete that line from your index.php file and save it.
Forum: Fixing WordPress
In reply to: E-Commerce Website Running Extremely SlowlyTry installing Query Monitor and see if there are any slow queries.
Forum: Fixing WordPress
In reply to: PHP errorIf this is a shared host, ontact them with this error and tell them that their ImageMagick library needs to be checked out.
Forum: Fixing WordPress
In reply to: two domains (godaddy) point to single siteWho sold you a “deluxe” version of WordPress?
Forum: Fixing WordPress
In reply to: Cant add adzone on body. New to the wordpressYou need to add a custom sidebar.
In your theme’s functions.php file, add this:
register_sidebar(array( 'name' => 'Middle Adzone', 'id' => 'middle-adzone', 'description' => 'The adzone in the middle of the page', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', ));
Then create a file called sidebar-middleadzone.php in your theme’s directory:
<?php if (is_active_sidebar('middle-adzone')) { ?> <div id="middle-adzone"> <ul> <?php do_action('before_sidebar'); ?> <?php dynamic_sidebar('middle-adzone'); ?> </ul> </div> <?php } ?>
Finally open the template file that you want to display the new adzone in and add this code in the position where it should appear:
<?php get_sidebar('middleadzone'); ?>
Forum: Fixing WordPress
In reply to: error in widget.php, widget page displayed oddlyIt’s saying that the Javascript for the WP Media editor hasn’t loaded. Disable your plugins one by one and test the widget page again after each one.
Forum: Fixing WordPress
In reply to: Filter Products by category in custom post typeTry this, it’s untested but should work:
add_action('init', 'portfolio_register'); function portfolio_register() { register_taxonomy("toolkit", array("portfolio"), array("hierarchical" => true, "label" => "Project Categories", "singular_label" => "Tool", "rewrite" => true)); $labels = array( 'name' => _x('Portfolio', 'post type general name'), 'singular_name' => _x('Tool', 'post type singular name'), 'add_new' => _x('Add New Project', 'tool'), 'add_new_item' => __('Add New Tool'), 'edit_item' => __('Edit Tool'), 'new_item' => __('New Tool'), 'view_item' => __('View Tool'), 'search_items' => __('Search Toolkit'), 'not_found' => __('Nothing found'), 'not_found_in_trash' => __('Nothing found in Trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'menu_icon' => get_stylesheet_directory_uri() . '/article16.png', 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'taxonomies' => array('toolkit'), 'supports' => array('title','editor','thumbnail') ); register_post_type( 'portfolio' , $args ); }
Forum: Installing WordPress
In reply to: Installing WordPress for second websiteThe other option is to enable multisite so that you only have one installation for an unlimited number of separate blogs.
Forum: Fixing WordPress
In reply to: Posts taking up to 30 seconds to loadIt’s something specific whenever the update_postmeta event is called. That code I had you put in didn’t execute, make sure you open a page that hasn’t been opened in a while. You’ll see a big block of junk that looks like:
Array ( [blahblah] => Array(
Forum: Fixing WordPress
In reply to: Posts taking up to 30 seconds to loadSorry, just realized I had you add that code to the wrong function.
Go back into /wp-includes/plugin.php to the do_action() function and after this line:
global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;
add this:
if ($tag == 'update_postmeta') { echo '<!--'; print_r($wp_filter[$tag]); echo '-->'; }
That will tell us what is hooking into that action event.
Forum: Fixing WordPress
In reply to: Can't find footer widget in back end?Actually, if it’s just one or two properties, this isn’t the correct way to do it because you’ll end up pulling in ALL properties.
A simple solution might be to create a duplicate post of each property for the other county. Would that work?
Forum: Fixing WordPress
In reply to: Links go back to home pageThat’s good, just wanted to ensure that it wasn’t empty. The only time this has ever happened to me, going through Settings -> Permalinks fixed it. Soo…. let’s eliminate the obvious issues:
1) Go to Dashboard -> Updates and hit “Reinstall Now”. Have it ensure that all of your files are unmodified from the core version.
2) Switch the theme to one of the default themes, like Twenty Thirteen.
Otherwise we’ll have to start adding debug code into your template files to see exactly what’s happening under the hood.
Forum: Fixing WordPress
In reply to: Posts taking up to 30 seconds to loadLet’s do a little more hacking of the update_meta_cache() function. We’re going to be adding several lines so make a backup of the wp-includes/meta.php file to overwrite with when we’re done.
-
Open wp-includes/meta.php and find this line:
function update_meta_cache($meta_type, $object_ids) {
- Beneath it add this:
if (!defined('DEBUG_START')) define('DEBUG_START', microtime(true)); echo "<!-- [update_meta_cache] CHECKPOINT 1: " . (microtime(true) - DEBUG_START) . "-->\n";
- Then find this line:
if ( empty( $ids ) )
- and ABOVE it add this:
echo "<!-- [update_meta_cache] CHECKPOINT 2: " . (microtime(true) - DEBUG_START) . "-->\n";
- Then find this line:
foreach ( $ids as $id ) {
- and ABOVE it add this:
echo "<!-- [update_meta_cache] CHECKPOINT 3: " . (microtime(true) - DEBUG_START) . "-->\n";
- Then find this line:
return $cache;
- and ABOVE it add this:
echo "<!-- [update_meta_cache] CHECKPOINT 4: " . (microtime(true) - DEBUG_START) . "-->\n";
This will narrow down which function is running slowly.
Forum: Fixing WordPress
In reply to: Can't find footer widget in back end?Try this:
'location' => array('montgomery-county', 'delaware-county'),
No guarantees!
Forum: Fixing WordPress
In reply to: This webpage is not availableWhat’s the website’s address?