|
sniperchance posted:Are there any WP plugins that allow you to restrict both frontend and dashboard access to certain post categories based on user capabilities? For example, making posts within a "Secret" category that only Editors and above can view and edit. I'm not sure if there are any plugins out there, but it would be really easy to do this. Make a template for the category, and wrap the loop of it with a check for that user type. if (current_user_can('editor')) { //here's where the output of posts is }
|
# ¿ Apr 20, 2012 01:19 |
|
|
# ¿ May 20, 2024 18:17 |
|
Gyshall posted:Any blank lines at the end of your functions.php file? Just goes to show, kids, don't close your PHP tags at the ends of files.
|
# ¿ Oct 22, 2012 18:14 |
|
By default, WordPress should embed youtube videos using oEmbed - just make sure the link is unformatted and on its own line in the editor. Works with vimeo, youtube, and tons of other providers.
|
# ¿ Mar 1, 2013 20:16 |
|
kedo posted:Put a unique string of characters in a comment on each template file, then view source. Debug and the plugins that add to it are the best way to go. Will give you ALL THE INFOS.
|
# ¿ Jun 12, 2013 03:37 |
|
gmq posted:This. Creating custom fields by hand is tedious. And https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress is almost the exact same thing is ACF, but with code instead of a GUI.
|
# ¿ Feb 25, 2014 00:05 |
|
thegasman2000 posted:Yeah I have no experience of cookies or how to implement that into my wordpress site. This should do it for you: php:<?php if( ! $_COOKIE[ 'saw_animation' ] ) { showAnimation(); setcookie( 'saw_animation', true, YEAR_IN_SECONDS ); } else { skipAnimation(); }
|
# ¿ Sep 5, 2014 15:51 |
|
Chris! posted:Hey, this is a really simple thing but I've had a long day and my brain feels dead. The easiest way would be to make clothes, cars, and weapons three separate taxonomies, I'd say.
|
# ¿ Oct 8, 2014 19:20 |
|
Azur posted:Probably not 100% correct, but something along these lines, some themes do it differently. Add to functions.php: To avoid the problem of losing it on a theme update, just make a new PHP file in your plugins directory and add a plugin header to it. You also want to make sure you prefix your function, so that if a function named 'excerpt_length' exists, your site won't break. code:
|
# ¿ Jul 11, 2015 02:56 |
|
|
# ¿ May 20, 2024 18:17 |
|
fuf posted:Why do people do theme updates? Themes include more than just HTML/CSS, most theme updates are bugfixes, security updates, more functionality, etc
|
# ¿ Jul 11, 2015 16:34 |