ucfknight10
Forum Replies Created
-
Forum: Hacks
In reply to: bold up first result of loopyour php is correct, if you’re creating your own mysql command.
Forum: Fixing WordPress
In reply to: Log-in loopive had this problem before, but disabling the plugins and themes has always worked for me. is reinstalling WP an option?
Forum: Hacks
In reply to: Plugins for Adminsoh it is possible to do what you want, i just didnt want to give the answer away from the start. we can make it work with this plugin, if you need to use that plugin.
Forum: Hacks
In reply to: SQL to fetch attachment image with parent postjust to be clear: you are wanting to grab the posts based on the image IDs provided?
Forum: Fixing WordPress
In reply to: Removing all nag messagesForum: Fixing WordPress
In reply to: How to create permalinks within articlethey are called anchors…i’m sure google can point you to several tutorials on creating them
Forum: Hacks
In reply to: Plugins for Adminsbut if someone tells you what to do, you wont learn, and that’s the whole point of the forums ??
that being said.
check out this page: https://codex.www.ads-software.com/Function_Reference/register_post_type. it’s information about the function register_post_type, which you will see at the top of the q-and-a.php file. use the ‘show_in_menu’ and the function provided earlier to create a conditional for display the tab.
or, you could use a role manager plugin, and create a role specifically for the qa post type, and give only admins capabilities to add and edit that post type.
Forum: Hacks
In reply to: Plugins for Adminsyou’ll need to edit the plugin manually. are you familiar with php and the structure of a plugin?
Forum: Hacks
In reply to: Plugins for Adminsthe link below will give you a function to determine whether a logged in user is of admin level or not. if so, the function will return true, otherwise, will return false. should be able to figure out from there. if not, let us know.
Forum: Hacks
In reply to: Notifications on Edit Post PageForum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizenot a problem @alargule. *mark as resolved*
Forum: Fixing WordPress
In reply to: Can't Change Page Ordermost likely the theme is ordering the pages on your nav by title, or some other method rather than menu_order. please post the code in header.php to https://pastebin.com, paste the link here, and i or someone else will take a look and point out the change you need to make to have your nav sort the way you want.
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeok just like i thought, there’s nothing linking the image to it’s full size.
replace this line
<?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
with
<?php $full = wp_get_attachment_image_src(get_the_ID(),'full'); echo '<a href="' . $full[0] . '" target="_blank">' . wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ) . '</a>'; ?>
that should work just fine ??
Forum: Fixing WordPress
In reply to: wpdb on a separate pageperhaps we have been going about this incorrectly. why are you pointing your form to a “static” php page, and why not to the form page itself? if we do this, then all of the database information is accessible (since wordpress is loaded), and you can do a “thank you” message, and it’s all self-contained in that one page.
Forum: Fixing WordPress
In reply to: wpdb on a separate pagecheck your require statement again. there seems to be a missing period. also, if the code you have doesnt work, try doing a raw mysql command, as mentioned in an earlier post.