Find attribute_id
SELECT * FROM eav_attribute where attribute_code = 'is_anchor'
Update all of them with anchor_id from above (usually is ID 51)
UPDATE `catalog_category_entity_int` set value = 1 where attribute_id = 51
| if ($this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true)) ) { | |
| $_is_home_page = true; | |
| }else { | |
| $_is_home_page = false; | |
| } |
| $args = array( | |
| 'post_type' => 'attachment', | |
| 'numberposts' => -1, | |
| 'post_status' => null, | |
| 'post_parent' => $post->ID, | |
| 'exclude' => get_post_thumbnail_id() | |
| ); | |
| $attachments = get_posts( $args ); |
| <?php | |
| if (has_post_thumbnail( $post->ID )) : | |
| $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); | |
| echo $image[0]; | |
| endif; | |
| ?> |
| <?php | |
| $message = $_POST['comment']; | |
| $headers = "Content-Type: text/html; charset=iso-8859-1\n"; | |
| $headers .= "From: ".$_POST['name']." <".$_POST['email'].">\n"; | |
| $headers .= "Reply-to: ".$_POST['name']." <".$_POST['email'].">\n"; | |
| $headers .= "\n"; | |
| mail('[email protected]','onderwerp',$message,$headers); |
| #! /bin/bash | |
| TIMESTAMP=$(date +"%F") | |
| BACKUP_DIR="/backup/$TIMESTAMP" | |
| MYSQL_USER="backup" | |
| MYSQL=/usr/bin/mysql | |
| MYSQL_PASSWORD="password" | |
| MYSQLDUMP=/usr/bin/mysqldump | |
| mkdir -p "$BACKUP_DIR/mysql" |
| yum install php-pear php-devel httpd-devel pcre-devel gcc make | |
| pecl install apc | |
| echo "extension=apc.so" > /etc/php.d/apc.ini | |
| wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
| rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
| yum install redis | |
| service redis start |
| ln -s ../../domain.com/httpdocs/app ./app | |
| ln -s ../../domain.com/httpdocs/includes ./includes | |
| ln -s ../../domain.com/httpdocs/js ./js | |
| ln -s ../../domain.com/httpdocs/media ./media | |
| ln -s ../../domain.com/httpdocs/skin ./skin | |
| ln -s ../../domain.com/httpdocs/var ./var | |
| cp ../../domain.com/httpdocs/index.php ./index.php | |
| cp ../../domain.com/httpdocs/.htaccess ./.htaccess | |
| cp ../../domain.com/httpdocs/robots.txt ./robots.txt |
| <?php | |
| /** | |
| * | |
| * By Microdesign B.V. | |
| * Author: Kay in 't Veen | |
| * Twitter: @kayintveen | |
| * More info: [email protected] | |
| * | |
| */ |
| sudo apt-get update | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
| sudo apt-get install -y vim curl python-software-properties | |
| sudo add-apt-repository -y ppa:ondrej/php5 | |
| sudo apt-get update | |
| sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.6 php5-mysql git-core php5-xdebug |