Tag Info

New answers tagged

0

I have faced similar issue while working for a client. The issue may cause due to following reasons. Check server configuration and server cache. ( This happens if you are using specialized wordpress hosting; the server admin configured some cache mechanism to increase performance) In this case you have to wait till the sever refresh its cache.


2

Check all credentials in wp-config.php. And don't forget about table prefix.


1

Have you checked the $table_prefix in wp-config.php (line 63) to see if that matches the prefix of your database tables?


0

It sounds like you have multiple databases and that WordPress is not accessing the correct one. Check your wp-config.php file (in the base of your WordPress installation) and make sure that your database credentials, in particular DB_NAME, are set correctly. You may also need to create/grant access to a new database user. There's about a dozen different ...


0

update 1/15/2011 I ended up using these steps - Go to Google Docs open the spreadsheet click Share Publish as a web page select the sheet to publish click Start publishing click on All cells field insert the cells range, e.g. A2:A3 click Republish now copy the-link Close. Example - <iframe src="The-Link" width="w" height="h" ...


0

You should import the schools as a table in the database, separate from the other WordPress tables. You can than write a function that selects and returns schools and eventually link it to the field via ajax using something like select2 or jquery autocomplete.


1

So I made it happen :-) There is one thing that I didn't really like to do but for the time being there is no alternative: The CronJob from the server This PHP script runs in a single (no template) file: $xmlData = file_get_contents(get_bloginfo('template_directory').'/import/external_db.xml'); // read XML data string $xml = ...


0

As long as you aren't passing out the plugin and other people don't have access to it, you should be fine. You might add something like the following to the top of the file just in case though: defined('ABSPATH') or die('Access denied'); That will simply make sure that the file is loaded via wordpress (e.g. the wordpress ABSPATH constant has been ...


1

@IlmarsL: thanks! I really did not think of that. I had the plugin Query Monitor enabled and this was the problem... Turning Query Monitor off solved the problem and memory did no more longer increase.


0

WP Migrate DB has come in handy with migrations I've done in the past, if you're looking for a bit more of a GUI based solution.


0

Try this. Hopefully I've interpreted your output correctly. I'd recommend a good read of the $wpdb codex, particularly in relation to the get_col() method - http://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_Column global $wpdb; // You won't need this unless this code is within a function $query = $wpdb->prepare( 'SELECT %1$s.guid FROM ...


0

The steps to take would be: 1 - Extract files 2 - Create DB and import 3 - modify wp-config.php for database name and user credentials if changed Do not modify db tables to change the site url as they are serialized and this will create more issues than you want to deal with. 4 - Use a script like searchreplacedb.php to search and replace all of the ...


0

I'll try to explain how it might be done, but not shore it will work: Install 2 website with single db ( 2 copies ). Create new table in you'rs db. Call it wp_options2 and copy everithing from wp_options inside new table in seccond install in wp-config.php, before if ( !defined('ABSPATH') ) add define( 'M7_OPTIONS_TABLE', 'wp_options2' ); in seccond ...


0

You may wish to post this same query in the TokuDB-users community here... https://groups.google.com/forum/#!forum/tokudb-user Good luck with your research. -dave


0

This could be easily accomplished using the plugin Advanced Custom Fields which allows you to easily create relationships between custom post types. However if you don't want to use the plugin, you can also create the metaboxes yourself. Create a custom post type for Productions Create any necessary custom fields for Productions Create a custom pos type ...


0

First thoughts - a custom tax for actors might work. The Taxonomy Images plugin will make adding the headshot easy. I'd maybe make the production a post - or an instance of a CPT - I wouldn't mess around with CSVs at all. You'd build the table in the post. I would perhaps create a shortcode that you could add into this table, which would generate a link ...


0

Your approach is impractical in any site with decent traffic. In that case having real time updates from a DB is the best way to bring your site down. What you need is to check the availability when people at items to carts and then again before the actual checkout. In addition you can update the current number of items every hour (or faster if you really ...


0

If i correctly understand your question, then i would do it these way: create api on website ( or create website with api ) wich uses external database, wich you need to take data from using wp_schedule_event create function wich will fire each hour or day or week to pull data from your api ( external db ). These part i didn't understood, so if you need, ...


0

WordPress has a WP-Cron mechanism for running scheduled tasks. It is used internally for update checks and other tasks, as well as extensively by plugins. Pro/con break down is pretty much: Does not rely or require anything from server configuration Is triggered by visits to the site, so might not fire reliably on time


1

I setup something similar. Using IIS - look into writing a .bat file which fires off a php shell script to do whatever it is you need to accomplish. once you have that bat file working, setup a "scheduled task" in IIS http://technet.microsoft.com/en-us/library/cc721871.aspx if you are on a linux system, then use crontab ...


0

Well it's really not good practise, but this depends on how you're accessing the other databases. For example, I have a server that hosts 10+ different Wordpress sites. I have two options for connecting to the databases: Use the root login in all my wp-config.php files as it's easier Create a user and logins associated with each database for each site ...


1

The way that I backup our site is two-fold. Via our web host (rackspace) and manually every time I write any code for the site. DISCLAIMER: this is just what I do by habit, I don't claim it's the best or only way to do it. Just sharing. Firstly your provider may have an automated way to create a server image schedule. Look into your server settings on your ...


0

Working code for adding widget to wp dashboard with information from custom DB: /** * Add application widget to the dashboard. */ function addApplicationWidget() { wp_add_dashboard_widget( 'submitted_applications', 'Submitted Applications', 'showApplicants' ); } add_action( ...


1

EXPLANATION As mentioned in my update above, to retrieve the ID of a thumbnail the get_post_meta function can be used without any additional DB overhead. The 'normal' way to get the url to a thumbnail id is with wp_get_attachment_image_src or similar functions, but those do not accept an array of IDs. What i noticed using wp_get_attachment_image_src was ...


0

You should look into Bedrock: roots.io/wordpress-stack/ Sounds like it'd be a good starting point for you. roots.io is, IMO, as good as it gets for theme development. I've used it for some time now and at the point where I know Bedrock would be a far better workflow - is a little daunting though so love to know how you get on. In terms of multisite ...


2

Look at the function wp_delete_comment(). It fires an action before the comment is deleted: /** * Fires immediately before a comment is deleted from the database. * * @since 1.2.0 * * @param int $comment_id The comment ID. */ do_action( 'delete_comment', $comment_id ); … and one after deletion: /** * Fires immediately after a comment is deleted ...


0

There are usually minimal db changes from one version to the next, it should be safe to do the manual-reinstall procedure with 1 older version. You can see the changes it does in wp-admin/includes/upgrade.php


0

My best practice to run a production system and keep a development version with a simple and easy configuration. Notice: This works super awesome on small wordpress websites. Create production and development configuration files: wp-config-dev.php (contains local database configuration, site url and debugging) _wp-config-live.php (contains production ...



Top 50 recent answers are included