removed from plugin, code too old
This commit is contained in:
parent
8c60e7f42d
commit
e3efa163e2
|
@ -1,4 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IT IS FROM 2012, TOO OLD
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
Plugin Name: category post shortcode
|
Plugin Name: category post shortcode
|
||||||
Plugin URI: http://ibnuyahya.com/wordpress-plugins/category-post-shortcode/
|
Plugin URI: http://ibnuyahya.com/wordpress-plugins/category-post-shortcode/
|
||||||
|
@ -88,7 +92,7 @@ function cat_func($atts) {
|
||||||
|
|
||||||
$output = '<div class="'.$class_name.'">';
|
$output = '<div class="'.$class_name.'">';
|
||||||
global $post;
|
global $post;
|
||||||
$tmp_post = $post;
|
$tmp_post = $post;
|
||||||
$myposts = get_posts("numberposts=$totalposts&category=$category&orderby=$orderby&order=$order");
|
$myposts = get_posts("numberposts=$totalposts&category=$category&orderby=$orderby&order=$order");
|
||||||
|
|
||||||
foreach($myposts as $post) {
|
foreach($myposts as $post) {
|
||||||
|
|
Loading…
Reference in New Issue