Dan Petty
Forum Replies Created
-
Forum: Plugins
In reply to: [Mandatory Field] Find the name:id for each field@ketanmujumdar — Thank you!
Forum: Plugins
In reply to: [Mandatory Field] Find the name:id for each fieldI, too, am looking to figure out how to make tags a mandatory field. I found this for the name and ID of the field itself:
newtag[post_tag]:new-tag-post_tag
But it doesn’t seem to work. Any ideas, Ketan?
Forum: Networking WordPress
In reply to: Index.php pagination broken/disappeared on MultisiteAndrea — Thanks for the suggestion. It’s affecting multiple themes. The two sites I mentioned above — on different URLs (but the same server) — are on different themes and are seeing the same thing with its pagination.
Forum: Fixing WordPress
In reply to: Conditional tag questionHere’s the final solution, after some messing around with code. I’ve tested and it works. Thanks for the help, stvwlf.
<?php $auth = get_the_author(); if ($auth == 'admin') { echo c2c_get_custom('hpbyline'); } else { if(function_exists('coauthors_posts_links')) { coauthors_posts_links(); } else { the_author_posts_link(); } } ?>
Forum: Fixing WordPress
In reply to: Conditional tag questionCan anyone build on stvwif’s response?
Forum: Fixing WordPress
In reply to: Conditional tag questionThanks for the reply, stvwif, but it doesn’t seem to be working. Here’s what it spits back.
Parse error: syntax error, unexpected T_ENDWHILE in /home1/thecolm1/public_html/wp-content/themes/revolution_news-21/archive.php on line 44
I was also wondering whether it was possible to integrate the “Co-authors” plugin I have activated into your solution. Essentially, if the post author IS NOT “admin” go through these commands (below). There are a lot of if/else statements in this, and I don’t know how to properly code it.
<?php if(function_exists('coauthors_posts_links')) coauthors_posts_links(); else the_author_posts_link(); ?>
Forum: Fixing WordPress
In reply to: Display PDF as Imagebump
Forum: Fixing WordPress
In reply to: Conditional Tag “No Display”Thanks, Otto. It worked great! I’m going to complicate things a bit. I want that author displayed to be a link to the author’s posts. I’m also using the “Co-Authors” plugin that allows me to add multiple authors to a post.
To clarify: If the author is “admin” I want none of the information — displayed below — to appear on the page. Otherwise, it should appear.
<div class="byline"> By <?php if(function_exists('coauthors_posts_links')) coauthors_posts_links(); else the_author_posts_link(); ?> </div> <div class="bytitle"> <?php echo c2c_get_custom('Bytitle'); ?> </div>
Forum: Fixing WordPress
In reply to: Conditional: Display no byline if author is adminbump
Forum: Plugins
In reply to: NYTimes/Washington Post Media SlideshowThanks for the reply, Mike. I actually already have the plugin, and I don’t think it’ll do quite what I want it to. Perhaps a Javascript slideshow is the answer? That’s what the NYT uses for “Inside NYTimes”. I’m using it at the end of my posts to provide links to other stories. So, I want to be able to display like 4 images (linking to posts) in a horizontal row, with “left” and “right” scroll buttons to see more images. Lots of the plugins out there are flash-based and really visually appealing, I’m looking for something a little more basic.
Can anyone else help?
Forum: Fixing WordPress
In reply to: Some PHP help for Co-Authors PluginBy the way, the code as written causes any author who has been part of a multiple author post to have the designation “Collegian Reporters,” even if it’s a single author. So, I’ve been a part of multiple author posts, but my title on other stories just by me is now “Collegian Reporters.”
Just to clarify…