d0100
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cheating, huh? Message apears when trying to select categoriesAnyone?
Forum: Hacks
In reply to: Get posts that have no categoryI managed to do what I wanted, I just got all posts, printed out the ones with categories, and the rest treated as uncategorized.
Forum: Hacks
In reply to: get_posts() not returning only selected category posts$categoriesis:$categories = get_terms( 'my_taxonomy', array( 'orderby' => 'count', 'hide_empty' => 0 ) );Forum: Hacks
In reply to: get_posts() not returning only selected category postsOn the Codex:
Custom Post Type Category (Taxonomy) If specifying a category from a custom post type then instead of using 'category' you would use '{your_custom_post_type}_category'. For instance, if you had a custom post type called "dogfood" and wanted to only show posts from the category "brand" you would use the below code.If I only use ‘category’ => $term->slug , it returns nothing.
Forum: Hacks
In reply to: $content escaped – ShortcodesAnyone?
Forum: Plugins
In reply to: [ Youtube Sidebar Widget ] Modding . No items on feed?Got it working.
Forum: Plugins
In reply to: [ Youtube Sidebar Widget ] Modding . No items on feed?Anyone?
Forum: Plugins
In reply to: [CataBlog] Sub Videos and shorcodes with catablog items resourcesOh, silly me. Just found out I need only to [gallery]…
Forum: Plugins
In reply to: [CataBlog] Sub Videos and shorcodes with catablog items resourcesOk,another question. On the media library I am able to attach uploaded images to a CataBlog post. But is there a way to use the image on the description without copy pasting the image url?
Forum: Plugins
In reply to: [CataBlog] Sub Videos and shorcodes with catablog items resourcesI don’t want to enable WP shortcodes, I want to create shortcodes to use inside the description that would output the items contents.
In other words, dismiss the usage of a template file and just call, for example, %IMAGE-THUMBNAIL% as if it was a shortcode.
Ex:
my description is very long. But check out my images: [IMAGE-THUMBNAIL] cool images, right? So here we continue with my description.Forum: Plugins
In reply to: [CataBlog] [Plugin: CataBlog] Error after de-selecting "Render Line Breaks"ok
Forum: Plugins
In reply to: [CataBlog] Sub Videos and shorcodes with catablog items resourcesLooking in the code I found this:
// loop through each items array of values and replace tokens foreach($values as $key => $value) { $search = "%" . strtoupper($key) . "%"; $template = str_replace($search, $value, $template); }Can I just create a new loop and create a shortcode for each value?
I actually just need a shortcode for the subimages, and videos after available.Forum: Plugins
In reply to: [CataBlog] Content for catablog item permalinkLet me try to explain:
I want some text to appear on the item’s page (ex: http://localhost/wordpress/?catablog-items=herp-derpina), that will not appear when listed on a post.
So what I did was to create a shortcode that will check if isset(catablog-items), then print the contents (within the shortcode).
Forum: Plugins
In reply to: [CataBlog] Content for catablog item permalinkThat isn’t the case. I solved the problem by using the plugin “Mindvalley Post & Get Variables”, I modified it to check if catablog-items $_GET var is set, meaning that it’s being visualized on it’s own page(not in a post).
Basically this:
$key = 'catablog-items'; if($pos = strpos($key,'[')){ $basekey = substr($key,0,$pos); $remainder = substr($key,$pos); eval('$value = $_GET[' . $basekey . ']' . $remainder . ';'); }else{ $value = $_GET[$key]; } if(!empty($value) && is_string($value)){ // is_string() to avoid unnecessary warnings if key is an array return $content; }Then just call it:
[ExclusiveContent] can only see me when going to permalink
[\ExclusiveContent]