-
1005 readersRecently, I needed to list all subpages of a parent page. I also needed to display custom fields below each subpage. And, on top of that, the list needed to be 2 columns. I found a solution for simply listing the pages in 2 columns, but it did not suggest how to modify the code
-
478 readersRecently, I needed to list all subpages of a parent page. I also needed to display custom fields below each subpage. And, on top of that, the list needed to be 2 columns.
I found a solution for simply listing the pages in 2 columns, but it did not suggest how to modify the code to
-
0 readersRecently, I needed to list all subpages of a parent page. I also needed to display custom fields below each subpage. And, on top of that, the list needed to be 2 columns.
I found a solution for simply listing the pages in 2 columns, but it did not suggest how to modify the code to
-
2196 readersA Lingerie Store Magento theme fully compatible with Magento 1.6.1.0 which is very easy to customise in the back-end
Features
Featured products slide show
Slideshow image banner
Cloud Zoom to enlarge product images
Fancybox for images
Valid XHTML and CSS markup
Fully compatible with Magento versions:Magento 1.5.0.1, 1.5.1, 1.6.0.0 , 1.6.1
User guide for installation.
Flexible
9336 readers
PHP
add_filter('manage_posts_columns', 'posts_columns_id', 5);
add_action('manage_posts_custom_column', 'posts_custom_id_columns', 5, 2);
add_filter('manage_pages_columns', 'posts_columns_id', 5);
add_action('manage_pages_custom_column', 'posts_custom_id_columns', 5, 2);
function posts_columns_id($defaults){
$defaults['wps_post_id'] = __('ID');
return $defaults;
}
function posts_custom_id_columns($column_name, $id){
if($column_name === 'wps_post_id'){
echo $id;
-
2782 readersOne of our clients needed to upload files via their admin, and kept getting the following error message: “File type does not meet security guidelines. Try another.” This was something new to us, and after doing some research we discovered that WordPress only allows users to upload certain types of files, and any files that
-
247 readersOne of our clients needed to upload files via their admin, and kept getting the following error message: “File type does not meet security guidelines. Try another.” This was something new to us, and after doing some research we discovered that WordPress only allows users to upload certain types of files, and any files that
4273 readers
Just a few updates to this including one courtesy of Cliff Paulick’s suggestion to check if post thumbnails are supportsed first to avoid errors. I also define a default image size and of course included both posts and pages in this snippet.( example screenshot )PHP
if (function_exists( 'add_theme_support' )){
add_filter('manage_posts_columns', 'posts_columns', 5);
6413 readers
PHP
function column_id($columns) {
$columns['colID'] = __('ID');
return $columns;
}
add_filter( 'manage_media_columns', 'column_id' );
function column_id_row($columnName, $columnID){
if($columnName == 'colID'){
echo $columnID;
}
}
add_filter( 'manage_media_custom_column', 'column_id_row', 10, 2 );
Visit wpsnipp.com for details on how to setup this WordPress snippet. Share
2801 readersWe recently launched a site called theforgottenletters.org, an incredible project dedicated to translating the Holocaust-era letters of Ralph Schwab from German to English. While building the site, we needed to archive the letters based on the dates the letters were written, not when we publish them to the site. First, I tried this tutorial: How