Forum Replies Created

Viewing 9 replies - 301 through 309 (of 309 total)
  • Forum: Fixing WordPress
    In reply to: dynamic sidebar Q
    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    OKay – tried that. For anyone interested, this is what it did:

    – to add parameters to the code, means that it is restricted in the information that it gathers from the db. Thus, it is restricted when I click on the parent page from showing sub-pages. I am sure that if I have all the data retrieved into the dynamic sidebar, that there is some sort of code once there, that will help me to change how it is displayed – formatted.

    Anyone know how to hide the sub-pages in the pages-navigation (other than “exclude”)? and then show the subpages when the parent page is clicked on? there has to be a snippet with the argument – if, then, else type of thinking – but how does that translate into PHP?

    AND, if the sidebar function in the theme, only asks for “get registered sidebars”, and then the dynamic sidebars have all this WP code getting stuff from the db – where does one present arguments for the layout?

    THANKS for sharing your knowledge. ??

    Forum: Fixing WordPress
    In reply to: dynamic sidebar Q
    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    here’s the code that I found:
    In the wp-includes/widgets.php file:
    in the *default widgets* section:

    • function wp_widget_pages( $args ) {
      extract( $args );
      $options = get_option( ‘widget_pages’ );

      $title = empty( $options[‘title’] ) ? __( ‘Pages’ ) : $options[‘title’];
      $sortby = empty( $options[‘sortby’] ) ? ‘menu_order’ : $options[‘sortby’];
      $exclude = empty( $options[‘exclude’] ) ? ” : ‘&exclude=’ . $options[‘exclude’];

      if ( $sortby == ‘menu_order’ ) {
      $sortby = ‘menu_order, post_title’;
      }

      $out = wp_list_pages( ‘title_li=&echo=0&sort_column=&depth=1’ . $sortby . $exclude );

      if ( !empty( $out ) ) {
      ?>
      <?php echo $before_widget; ?>
      <?php echo $before_title . $title . $after_title; ?>

      <?php echo $out; ?>

    <?php echo $after_widget; ?>
    <?php
    }
    }

    This is DEEP CODE for me!!! Is it a BAD idea to change the WP code itself??? I simply want to change that bolded code to include “depth=1”.

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    How about putting it like – the post IS the header? orrrrr a Dynamic Header. So as long as I keep the “title” stuff first, the rest is just cut and pasting code into different places on the templates, right? Is there a forum for those of us dabbling in design – more like adapting a design?

    Forum: Fixing WordPress
    In reply to: dynamic sidebar Q
    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    Thanks again for getting back to me.

    Unfortunately, that exactly, is my problem. There are sidebar php files. but NO dynamic_sidebar files. Would they be somehow in the db?

    This is the entire contents of the theme (from my cpanel):

    Create New File
    404.php 0 k 0644
    Readme.txt 0 k 0644
    archive.php 2 k 0644
    archives.php 0 k 0644
    comments-popup.php 4 k 0644
    comments.php 3 k 0644
    footer.php 0 k 0644
    from style sheet.txt 0 k 0644
    functions.php 0 k 0644
    header.php 1 k 0644
    index.php 1 k 0644
    links.php 0 k 0644
    page.php 0 k 0644
    screenshot.png 35 k 0644
    search.php 1 k 0644
    searchform.php 0 k 0644
    sidebar.php 0 k 0644
    sidebar2.php 1 k 0644
    single.php 1 k 0644
    style.css

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    Thank you shadow for your help. THe 2 databases are working nicely together now. You’ll have to post what the ‘fix’ was, as I have no idea how you worked your magic. ??

    – cathy

    Cathy Mitchell

    (@multitalentedmommy)

    Hi there, I am learning some basic stuff about wp and php’s, and templates. You probably know a lot more than I, but the days I’ve spent on this site, I’ve seen some helpful files here: https://codex.www.ads-software.com/Template_Hierarchy and the article has lots of helpful links to individual tags and commands to use within WP php files.

    Hope this helps!
    Cathy/ Multitalentedmommy

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    I am “already installed” when went through the paces, now I can’t log in. Last week when I recovered the password, i used that one and my old username and it doesn’t work. That IS my username, and it won’t recognize it! With capitals, without. What do I do?

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    good idea… brb ??

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    I am the one installing WP (the files were removed from the cpanel, db was left in tact). I am stuck at the config.php file. I have edited the file to have the correct, and only db – wrdp1. With the only user there, and the correct passw. I know it is correct because I changed it! And it is the same passw as the one for my control panel, and it works there. So,,,, what am i doing wrong, for the error message: Error establishing a database connection… I was wondering if it is something to do with the db being configured for the old version of WP.

Viewing 9 replies - 301 through 309 (of 309 total)