tuppaloprobe
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with multiple wp_query loopsI figured out why.
I copied the same loop and the same args and used them both for the sidebar and for the loops above and thus there where more than 1 array with different parameters and same name. The array in my post did not write over them and the first args where the ones used in both the side bar and this page.
Thanks a lot for the help anyway ??
Forum: Fixing WordPress
In reply to: Problem with multiple wp_query loopsIt seems that the query is forced to be in a certain way. I have tried different query parameters, but I get the same result every time when the sidebar is active.
The problem was not exactly in the way i described it here.
$parentCatList = get_category_parents($cat,false,','); $parentCatListArray = split(",",$parentCatList); $topParentName = $parentCatListArray[0]; $sdacReplace = array(" " => "-", "(" => "", ")" => ""); $topParent = strtolower(strtr($topParentName,$sdacReplace));
The problem here was that this line did not get any data, or parameter.
$parentCatListArray = split(",",$parentCatList);
The $cat here did not have any value because of an slug typo on one post and thus no value here and the spit thing on the previous line did not get a value and it seems that thats what the error message means or at least what it meant in this case.
$parentCatList = get_category_parents($cat,false,',');
I hope this helps you.
Is there really no one that can give me any answers on this issue?
Forum: Plugins
In reply to: Create custom “add new post” with predefined values for title etc.I found these functions and i think i can make something out of them. Within a templatepage or somthing.
<?php wp_insert_post( $post ); ?>
<?php wp_publish_post( $post_id ) ?>
<?php add_post_meta($post_id, $meta_key, $meta_value, $unique); ?>