This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the connected posts | |
$my_connected_posts = Post_Connector::API()->get_children( "course", get_the_id() ); | |
// Check | |
if ( count( $my_connected_posts ) > 0 ) { | |
// Loop | |
foreach ( $my_connected_posts as $my_connected_post ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password root' | |
sudo apt-get update | |
sudo apt-get -y install mysql-server-5.5 php5-mysql libsqlite3-dev apache2 php5 php5-dev build-essential php-pear | |
# Set timezone | |
echo "Europe/Amsterdam" | sudo tee /etc/timezone | |
sudo dpkg-reconfigure --frontend noninteractive tzdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# License: GPL v3 | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'meta_query' => array( | |
'relation' => 'AND', | |
array( | |
'key' => 'meta_key_one', | |
'value' => '1' | |
) | |
) |
NewerOlder