|
I originally asked this in the PHP thread, but they sent me here. I need some help getting started. I'm using WordPress for lawyerist.com. It's my own, custom theme. Here's what I'm trying to do: Loop 1: * If the post was published on or after Monday, publish it in Loop 1. * If the post is the most-recent post *and* it was published today, tag it with class="current". Loop 2: * If the post was published before Monday, publish it in Loop 2. Thanks in advance for any help you can give me. I'm cool with doing multiple loops. Mostly, I'm trying to figure out how to say "if the post was published on or after Monday" and "if the post was published before Monday" in PHP.
|
# ¿ Oct 1, 2013 20:47 |
|
|
# ¿ Apr 27, 2024 08:13 |
|
rt4 posted:Comparing date('N') to see if it's >=6 (Saturday) ought to get what you need Thanks! I think that's enough to get me started. This, too. Robot Arms fucked around with this message at 03:51 on Oct 2, 2013 |
# ¿ Oct 2, 2013 03:46 |
|
lol internet. posted:I was wondering if it's possible to make a wordpress "page" a "contact form" which has a couple fill-in boxes, one being email and content with the ability to hit "send" Contact Form 7 Khelmar posted:Forms. Gravity Forms is pretty powerful, and I'd be surprised to find out that it doesn't do what you want. The same goes for Wufoo. Neither is free, but Gravity Forms is a great deal at $39 for a personal license. Wufoo charges monthly, which probably isn't ideal for you, but I prefer Gravity Forms, anyway.
|
# ¿ Oct 15, 2013 06:09 |
|
I'm trying to build a front page that has only posts from this week. This part, I can do. Then, I want to show all previous posts, starting on page 2. This is the part I'm having trouble with. What it does right now is show this week's posts on page 1, and starts page 2 right where it otherwise would given my settings, with the 11th post. Here's what I've got so far: code:
Edit: I should just be using a static front page with its own template, shouldn't I? Robot Arms fucked around with this message at 03:54 on Oct 20, 2013 |
# ¿ Oct 20, 2013 03:10 |
|
I'm getting some weird more tag behavior on my blog, with a custom theme. This post, for example, looks find if you go to the regular URL: http://caveatemptorblog.com/mcdonalds-publishes-guide-tipping-help-minimum-wage-employees/ But if you click on the Keep reading --> link, you cannot scroll up past the break: http://caveatemptorblog.com/mcdonalds-publishes-guide-tipping-help-minimum-wage-employees/#more-11741 Edit: In fact, it works for any anchor: http://caveatemptorblog.com/heres-income-inequality-us-looks-like-one-image/#disqus_thread Any idea what could be causing this? I'm stumped. Robot Arms fucked around with this message at 07:47 on Dec 10, 2013 |
# ¿ Dec 10, 2013 06:40 |
|
RobertKerans posted:overflow:hidden on the #page_container is causing it. There's a scroll happening, it's just hidden. You'll need to check it doesn't break anything else, but that should fix the primary problem, it works fine if I delete the rule in devtools. Thank you!
|
# ¿ Dec 10, 2013 18:04 |
|
I'm trying to get my theme to automatically add a "from the archives" tag to posts that are older than one month/30 days. So something like this:code:
Little help/push in the right direction?
|
# ¿ Jan 16, 2014 19:54 |
|
Kanpachi posted:CODE Worked like a charm. You rock!
|
# ¿ Jan 17, 2014 17:58 |
|
Weird Uncle Dave posted:What's the current state-of-the-art for managing lots of WordPress sites? I don't know if it's state of the art, but we just went with a multisite install for our sites. It's 37 sites now, and multisite is working well so far.
|
# ¿ Feb 13, 2014 19:51 |
|
I'm building this for fun, and maybe for my personal blog: http://samglover.net/terminal/ I didn't see anything similar in the official WordPress themes directory. This was the closest I found. I'm also trying to do it all with just index.php and comments.php (I particularly like the commenting form), instead of the usual collection of theme files. It's definitely a work in progress, but you can get the general idea. Robot Arms fucked around with this message at 16:30 on Apr 25, 2014 |
# ¿ Apr 25, 2014 15:23 |
|
I want to be able to style Markdown-formatted text within the editor. In other words, I want to be able to make a heading bold, and make italicised text show up italicized. If you've used a text editor like Byword, you know what I mean. So if I enter this: pre:### Heading 3 pre:### Heading 3 Is this possible, or am I dreaming?
|
# ¿ Jun 17, 2014 20:18 |
|
I don't think there's a plugin, either. I was planning to do it myself. I've already styled the editors a bit. I've always felt like the font for the text editor sucked, and it was too small with not enough line height. So I use 16px Source Code Pro, instead (and 18px Source Sans Pro in the visual editor). But I was hoping I could style it even further as I type. I'm just not sure where to start.
|
# ¿ Jun 18, 2014 02:43 |
|
Bro, that doesn't do highlighting in the editor. Lots of plugins (including Jetpack) support Markdown. None that I can find support syntax highlighting in the editor. Although I wonder if I could use Prettify to do that. That's what WP-Markdown uses for previewing Markdown in comments.
|
# ¿ Jun 18, 2014 14:37 |
|
Just published my first plugin: https://wordpress.org/plugins/wp-editor-tweaks/ It's not much, but it makes it much more pleasant to write in WordPress if you use the Text editor. (It's only a small improvement if you use the Visual editor.)
|
# ¿ Jun 26, 2014 19:44 |
|
wordsauce posted:Include screenshots. Thanks for the tip. Will do. Edit: Done. Now I just have to remember to keep them up to date. Robot Arms fucked around with this message at 17:28 on Jun 30, 2014 |
# ¿ Jun 30, 2014 07:28 |
|
That's Tim Ferriss's, right? IIRC, it's custom-built with DOMTab and the WordPress Popular Posts plugin. I based the popular posts sidebar widget on lawyerist.com off of Tim Ferriss's widget, but I found idTabs easier to use. To get the plugin working, you have to drop the jquery.idTabs.min.js file into your theme's directory and load it in the footer with this line of code: code:
code:
Then you can fiddle with the CSS until you get the look you want. Robot Arms fucked around with this message at 22:49 on Jul 14, 2014 |
# ¿ Jul 14, 2014 15:45 |
|
Omits-Bagels posted:would you be willing to do the same for my site? Sure thing. I'll shoot you an email.
|
# ¿ Jul 16, 2014 14:40 |
|
Disharmony posted:Probably a question that's been answered already but how do I hide categories from showing up in the front page but not anywhere else? code:
|
# ¿ Aug 7, 2014 18:00 |
|
You want to hide posts from a category or the category in the post meta/byline?
|
# ¿ Aug 8, 2014 01:51 |
|
You need to use separate templates for the front page and for archive pages. Just copy your index.php to archives.php, and remove the category targeting from your query_posts function in archive.php. Robot Arms fucked around with this message at 03:02 on Aug 8, 2014 |
# ¿ Aug 8, 2014 02:32 |
|
Our WordPress install for Lawyerist.com is over 7 years old, now. We've installed and removed probably hundreds of plugins during that time, and our database is full of cruft. I use WP Optimize to keep the database healthy, but that doesn't clean out the stuff that is no longer attached to any plugin. I've manually removed some of the tables left by plugins we no longer use, but there are dozens or hundreds of junk rows in wp_options, wp_postmeta, etc. I'm kind of a neat freak and this drives me crazy. Is there a recommended plugin or procedure to clean out the cruft from our database? Does it even matter?
|
# ¿ Aug 22, 2014 19:15 |
|
The easiest way to do it is probably with IFTTT + Gmail + Buffer. It sounds complicated, but it's not. I just have IFTTT monitor our RSS feed for new posts. When it sees one, it sends an email with a link and a "post now" signal to Buffer, and Buffer uses that to update our Twitter account, Facebook page, LinkedIn company page, and Google+ page.
|
# ¿ Aug 27, 2014 15:20 |
|
You're right. I totally forgot about that. We just use the Gmail hack to make it work with all our social media accounts at once.
|
# ¿ Aug 27, 2014 16:57 |
|
Could it have to do with the post type? From the Codex:quote:Please notice that this feature is only available for the built-in post type post and not for custom post types. I know I still have the option after upgrading to 4.0.
|
# ¿ Sep 12, 2014 19:06 |
|
I've run into a problem. We're trying to distinguish between standard posts and other post formats. What I want is a link to Articles that goes to a list of just the standard posts, and a link to Notes that goes to a list of non-standard posts (links, quotes, videos, etc.). My original idea was to do a page /articles and /notes. It's easy to do a custom query that gets just the post formats I want, but pages aren't paginated, so I only get one page of posts. Are pages the wrong thing to use? Is there another way to create a list based on post format?
|
# ¿ Sep 17, 2014 05:33 |
|
Thanks. I was looking at that last night, but I must have been too bleary-eyed to figure it out. It's working just fine now.
|
# ¿ Sep 17, 2014 16:08 |
|
Is there a way to get an archive page for a particular post format? I've done it the hacky way, by creating a custom page template and filtering the query. I'm hoping to do something like you would do for tags, like: lawyerist.com/tag/foo lawyerist.com/format/aside EDIT Found a partial answer: http://codex.wordpress.org/Function_Reference/get_post_format_link Basically, post formats are at lawyerist.com/type/aside (and so on). Robot Arms fucked around with this message at 02:49 on Sep 18, 2014 |
# ¿ Sep 17, 2014 22:33 |
|
For sliders, I really like Theia Post Slider. You can see it in action here and here. You just use the regular <!--nextpage--> tag in the editor to switch between slides, and you can set different header and footer content. It's also quite smooth, as you can see. Edit: Oh, it doesn't do an index, though. That would be pretty cool.
|
# ¿ Oct 24, 2014 21:36 |
|
We use VaultPress for realtime backups. It's great if your WordPress install is still functioning. But since your WordPress install has to be functioning, it's limited if you have broken it. Our server does daily backups, which we can access in case of disaster. I download a full backup once a month, as well. I could probably automate that, but it's not much bother. Edit: After writing this, I logged into my VaultPress account. It looks like you can restore a broken install. Sweet. Robot Arms fucked around with this message at 03:53 on Oct 29, 2014 |
# ¿ Oct 29, 2014 03:46 |
|
What's the best way to get share counts for a post? I want to be able to display share counts on the front page a la Mashable or something. I know Jetpack (which we use) tracks share counts for each network you show. Can I hook into the API and add those up, or something? Or is there an easier way to do it (I'm not afraid of functions.php or just building my own plugin)?
|
# ¿ Dec 16, 2014 19:56 |
|
Any liveblog recommendations besides Automattic's plugin or 24LiveBlog? The Automattic plugin ate our liveblogs the last time we used it, and 24LiveBlog has become a crashy mess since the last update.
|
# ¿ Mar 4, 2015 04:19 |
|
If you want a little chat pop-up for sales or support, then I dunno. But if you want an embeddable chatroom, tlk.io is pretty simple and great.
|
# ¿ Jun 12, 2015 12:25 |
|
I'd like to have a "safety" for the Schedule/Publish button. Even just an "Are you sure you want to do that?" pop-up would help keep me from publishing posts when I just mean to change their status. Has anyone encountered a plugin like this? If not, how would I do this myself?
|
# ¿ Jul 14, 2015 19:49 |
|
That's perfect. Thanks!
|
# ¿ Jul 15, 2015 15:43 |
|
well why not posted:The 'export' function in WP's admin will let you export all content. No, this just gets you an XML file. It has all the information about the posts and pages on your site, but none of the content itself. It's really only for transferring your content from one WordPress site to another, but both sites have to be online for it to work, because the file just tells the new site where to go to suck all the information out of the old site. If you want to back up your site, you need to back up your WordPress directory and the database. There are lots of plugins that will handle this for you, or you can do it manually from your server's control panel.
|
# ¿ Dec 14, 2015 13:12 |
|
|
# ¿ Apr 27, 2024 08:13 |
|
We use TablePress and it's fine. You can sort columns, search, import spreadsheets, etc.
|
# ¿ Mar 7, 2016 21:29 |