markross1967
Forum Replies Created
-
Hi,
This is a GREAT plugin, thank you!The exclude category option works very well. I wish there was an include (only) option, as well. I would like to a a WP Popular Post Widget that only shows the results of one category.
Is that possible?
Thank you.
Forum: Fixing WordPress
In reply to: If not category, then add Author InformationThank you for all the help!
Here is the link, in pastebin, for my (Twenty Eleven Theme) functions.php file: https://pastebin.com/Vbj2u92E
I really appreciate it.
Mark
Forum: Fixing WordPress
In reply to: If not category, then add Author InformationThank you again, for the help!
Unfortunately, every time I try to update my functions.php file, including with the above code, I get a parsing error. ??
May be I should stick with editing the content-single.php file?
Forum: Fixing WordPress
In reply to: If not category, then add Author InformationThat’s OK. Thank you for responding!
I tried to edit the below code, in the functions.php file, to include the <?php if (! in_category(‘Political Artwork’) )?> statement, but I kept getting parsing errors.
Would you happen to know where to place that statement, in the below code, so that it will work correctly?
Thank you again,
Markif ( ! function_exists( 'twentyeleven_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. * Create your own twentyeleven_posted_on to override in a child theme * * @since Twenty Eleven 1.0 */ function twentyeleven_posted_on() { printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), get_the_author() ); } endif;
Forum: Fixing WordPress
In reply to: If not category, then add Author InformationSomehow, I’m thinking that, by adding ?> at the end of the first line, it turned it into two separate php statements, when it needs to be one continuous statement.
Still, I’m not sure, and don’t know how to fix it.
Forum: Fixing WordPress
In reply to: If not category, then add Author Informationthecodeisclear,
Unfortunately, I just noticed that, this code:
<?php if (! in_category('Political Artwork') )?> <p>Written by <?php the_author_posts_link(); ?></p>
is not doing the trick. ??
For example, if you take a look at this post:
https://www.original-republican.com/some-would-sacrifice-americas-ideals/
which is posted in category, “Political Artwork,” the author information is still appearing.Any other suggestions?
Thank you,
MarkForum: Fixing WordPress
In reply to: If not category, then add Author InformationAwesome! Apparently, that was the problem. It is working fine now. Thank you so much! ??
Forum: Fixing WordPress
In reply to: If not category, then add Author InformationHi, thank you for the response!
No matter where I place the code:
<?php if (! in_category('Political Artwork') ) <p>Written by: <?php the_author_posts_link(); ?></p>
in my content-single.php file, it is causing a parsing error. ??
Any other suggestions?
Thank you for the above tip, as well.
Forum: Themes and Templates
In reply to: Meta Data question (WordPress to Facebook)Here is the code I am inquiring about, in the above post:
https://pastebin.com/4p1ySLCTThank you,
Mark