gemanshi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display different pages in nav bar based on what page you’re onI have:
<?php $thepostid = $post->ID; if ($thepostid=118) wp_list_pages('title_li=&depth=1&sort_column=menu_order&child_of='.$thepostid); ?>Forum: Fixing WordPress
In reply to: Display different pages in nav bar based on what page you’re onAlright, I placed the code in the header file and I get ALL the pages (parents and children) displayed at all times.
Forum: Fixing WordPress
In reply to: Display different pages in nav bar based on what page you’re onThis looks great. Thanks so much for the response. I do have one other question (probably a stupid one) though. Where should I put this code? The header file? Sorry about the question, just trying to hack/stumble through this myself.
Forum: Themes and Templates
In reply to: Adding a Title to post contentSorry about that. To clarify, I’m trying to modify the prologue theme to fit my needs and want to add a title field. I assume that the following portion of the index file is where I need to be working:
$_POST['action'] == 'post' ) { auth_redirect(); if( !current_user_can( 'publish_posts' ) ) { wp_redirect( get_bloginfo( 'url' ) . '/' ); exit; } check_admin_referer( 'new-post' ); $user_id = $current_user->user_id; $post_content = $_POST['posttext']; $tags = $_POST['tags'];I tried to add
$post_title = $_POST['posttitle']and a few variations but to no avail. The “posttitle” is the name of the string I made in a textarea on the post-form.I might not be even close with the above attempt since like I said, this is totally trial and error but it seemed to be a possible solution. If you have any other suggestions, I really appreciate. Thanks for the response too!
Forum: Plugins
In reply to: Making a Dropdown List with Preset TagsNevermind, I finally got it to work by replacing the input with a select and making sure name=”tags” was present. I think it will work fine that way.
Forum: Fixing WordPress
In reply to: Category DropdownsBeen messing with this today with no luck. Any ideas why the categories I’ve made in the admin area don’t show up when I include the category widget in my sidebar?
Forum: Plugins
In reply to: Add fields to post formDoes anyone have any suggestions on how to do this?