Forum Replies Created
-
AuthorPosts
-
Alec BurnsMember
Thanks for the help! Unfortunately, as this post didn't get a response for 3 1/2 months, I ended up just outsourcing the work. I'm new to the forum—should I leave this up for others?
Thank you,
AlecAlec BurnsMemberDid I post this in the wrong place?
Alec BurnsMemberFixed it! Thanks again, exactly what I needed.
Alec BurnsMemberThank you, good to know. I tried that code and it removed the header, but left a white space above my background image where it used to be.
Alec BurnsMemberThanks... I tried adding that, but WordPress complained about not having enough arguments for the "remove_action" function. I went to the line in plugin.php the error mentioned the declaration of "remove_action" is: `function remove_action( $tag, $function_to_remove, $priority = 10 ) {
return remove_filter( $tag, $function_to_remove, $priority );
}
`I tried adding a second argument to my remove_action('genesis_header'); in functions.php, but adding a number as a second argument didn't remove the header.
Alec BurnsMemberPerfect, exactly what I needed. Thank you.
Alec BurnsMemberThanks, I've changed those and modified the category argument to '1,2' (in my case '5,10') but it now lists posts from either category 1 or category two, not only posts in both category one and category two.
Alec BurnsMemberStrike that ^
(sorry, not sure how to delete posts.) Turned out I just forgot to update the constructed name.
Alec BurnsMemberThank you, that bit of code is quite helpful. Do you know anything that would make copying the featured posts widget to my child theme specifically difficult? I've copied the class Genesis_Featured_Post and have added it as-is to the end of my functions.php, renamed it Genesis_Featured_Post_Child and then have attempted to register it with
add_action( 'widgets_init', function() { register_widget( 'Genesis_Featured_Post_Child' ); } );
but the widget doesn't show up in that area of my admin panel. I copied over the foo example from the wordpress wiki, and that works fine, so I know it's not an issue with my child theme but with (I assume) the Featured Posts widget.Thanks again,
AlecAlec BurnsMemberI believe a custom loop would work too, assuming it can accomplish the same task, but since I'm new to php/WordPress programming I figured modifying existing code would be more doable.
-
AuthorPosts