tlucht
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.No, I’m really close.. (meaning in the right spot)
Here’s what I’m seeing:
<?php global $post; $children = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'page', 'numberposts' => -1 )); // if current page has children set parent to current page if ( count($children) > 0 ) { $id = $post->ID; // if current page doesn't have children use parent of current page } else { $parents = get_post_ancestors( $post->ID ); if ( count($parents) > 0 ) { $id = $parents[0]; } } if ( isset($id) ): $the_query = new WP_Query(array( 'post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $id, 'order' => 'ASC', 'orderby' => 'menu_order' )); if ( $the_query->have_posts() ) : ?> <h3><a href="<?php echo get_the_permalink( $id ); ?>"><?php echo get_the_title( $id ); ?></a></h3> <ul class="nav nav-pills nav-stacked"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php endif; endif; ?>
That’s the menu php page.
I know I’m close with the ‘orderby’, but I can’t seem to figure this out!
Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.I’m guessing it is using post meta. Are you able to go to the post and edit that directly? Or that what you would like to avoid as it does sound a bit time consuming. One way I can think of would be using phpMyAdmin
So YES, I’m able to get into the phpMyAdmin, but again.. I have NO IDEA what I’m looking at.
Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.Jose,
I tried searching: Tracie, Tracie Butler-Kurth, Kurth etc.
Because THAT is the information I’m trying to change/swap-out. Yes, this is a custom built theme modified from the previous owner(s)(which can’t be reached). How the<aside id="side-menu">
is collected…. when the “POST” is created, there is an input section where you can put: author, contact etc. Test Devices doesn’t want the Tracie person to be listed anymore. They would like to swap it out with another contact person, ‘sigh’.
Any other suggestions? Thank you.Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.Steve,
Thanks again for responding. The search wasn’t able to find the data.
I got this:DRY RUN: 28 tables were searched, 0 cells were found that need to be updated, and 0 changes were made.
Thanks again for your input and suggestion.
I was able to use the tool, just no luck.Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.Anybody have any suggestions on how to log into the database and swap the content?
[Moderator note: Please, no bumping.]
Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.Sterndata, thanks for the suggestion.
Wasn’t in the widget section, so no there.
I installed the plug-in, but don’t have a clue what I’m looking at when I go into edit the php files. Seems like it would be easier to find this within the database.
There’s 17 php files that the plug-in loads.
Any other input or ideas? Thank you.Forum: Fixing WordPress
In reply to: Changing a previous post author, and/or press release. Database.Oops, sorry this is the sample link:
Forum: Fixing WordPress
In reply to: Beyond normal menu structure dashboard help.OMG, facepalm right meow… I was trying to edit sitemap. omg, duh. Thank you! Solved, please close!
Forum: Fixing WordPress
In reply to: Beyond normal menu structure dashboard help.Just add news in custom links and link to https://www.unitechus.com/news/ page
Yes, I totally tried that. Did it,, and nothing.