Forum Replies Created
-
AuthorPosts
-
September 18, 2015 at 9:29 am in reply to: Pathway Gothic One Google Font and News Pro theme #166008GeoffreyMember
Hey Graham,
I too recently noticed that two fonts were enqueued in the News Pro functions.php while the style.css only referenced one (i.e. Raleway). As you and Victor (What a great last name!) both correctly surmised, only one needs to be enqueued.However, they are both great fonts. Victor's suspicion that "the developer intended to use Pathway for titles" is sound. Pathway Gothic One is a narrower sans-serif and would elegantly pair with Raleway.
But there is nothing wrong with using just one of those fonts. Check this out!. Example 7 utilizes Polar Gothic One for headings and body text while Example 5 utilizes Raleway for both.
So the moral of the story here is to simply unleash your inner Creative. Best of luck!
November 30, 2012 at 11:26 am in reply to: Minimum Theme – How do I display custom post types on home page? #2557GeoffreyMemberNever mind. I forgot to set global $post.
A more important question would be is this a good way to accomplish my goal (displaying custom post types on home page). Honestly, I don't know what I am doing here. I see all of these hooks and actions and wonder if there is a better way of accomplishing my goal and not building in problems down the road. Thanks!
November 30, 2012 at 10:55 am in reply to: Minimum Theme – How do I display custom post types on home page? #2545GeoffreyMemberI am able to create and update custom post types on the WP back-end and I can see all the data wp_postmeta via phpmyadmin. To display my CPT on the home page I modified home.php by commenting out the call to genesis_standard_loop(); I then created my own function gmw_events_loop();
here is a snippet in my new function that I am having a problem with:
$wp_query = new WP_Query( $args );
while ( $wp_query->have_posts() ) : $wp_query->the_post();
$meta = get_post_meta($post->ID, 'gmw_events_meta', true);(save the_title and meta data to array)
endwhile;
the_title (from wp_posts) returns the event name fine. My problem is that $post->ID is empty and therefore get_post_meta() returns nothing. If I hardcode the post_id into get_post_meta(), it works fine. It works in a simple theme I developed. I don't know why it doesn't work here. Any suggestions? Thx!
GeoffreyMemberGot it. Thanks!
-
AuthorPosts