Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter trickadee

    (@trickadee)

    Hi There,
    I still haven’t got this up and running, it’s a project I’ve parked for now. As Jake said, it’s about creating connections on the front end.
    If you do write something, please let me know!

    I got this working in case you’re interested:

    $args = array( 'taxonomy' => 'indicators' );
    
    $terms = get_terms('indicators', $args);
    
    $count = count($terms); $i=0;
    if ($count > 0) {
        $cape_list = '<p class="indicators-archive">';
        foreach ($terms as $term) {
    $opts = xydac_cloud(indicators,'', 'xo_basics');
    $oxc = $opts[$term->slug]['xo_basics'];
            $i++;
        	$term_list .= '<tr><td><a href="indicators/' . $term->slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '">' . $term->name . '</a></td><td>' .$term->description. '</td><td>' .$oxc. '</td></tr>';
    	}
        echo $term_list;
    }

    The bad code didn’t print properly. It’s basically the same thing over and over again with ‘nul’ characters splashed throughout it.

    I’m having the same issue. About once a day my site goes down. I rewrite the .htaccess file to be this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /manual/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /manual/index.php [L]
    </IfModule>
    
    # END WordPress

    and 24 hours later, the .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /manual/
    RewriteRule ^index\.php$ - [L]
    RRewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /manual/index.php [L]
    </IfModule>
    
    # END WordPress
    fModule>
    
    # END WordPress
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /manual/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /manual/index.php [L]
    </IfModule>
    
    # END WordPress

    What can I do to stop this happening?

    Thread Starter trickadee

    (@trickadee)

    Thanks for the start. I might need to pull someone in on this- a bit hard for me.

    Thanks for the reply xanderashwell.
    The code I listed works as is, but I can’t figure out how to add into it a Taxonomy Manager Custom Field.

    I was wondering whether you got an answer to this part of your original post:
    “I’m also looking for a way to query these fields within a “foreach $terms as $term” loop… “
    Since I believe that’s where I’m at.

    Did you get the “foreach $terms as $term” loop working.

    I’m trying to display an overview of my custom taxonomy with its fields that include name + archive link/ description and a custom field managed by this plugin. I can’t figure out how to display the custom field data in the third table column. Any help would be appreciated!

    $args = array( 'taxonomy' => 'indicators' );
    
    $terms = get_terms('indicators', $args);
    
    $count = count($terms); $i=0;
    if ($count > 0) {
        $cape_list = '<p class="indicators-archive">';
        foreach ($terms as $term) {
            $i++;
        	$term_list .= '<tr><td><a href="indicators/' . $term->slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '">' . $term->name . '</a></td><td>' .$term->description. '</td></tr>';
        }
        echo $term_list;
    }
    Thread Starter trickadee

    (@trickadee)

    Thanks very much- this was what I needed. ??

Viewing 8 replies - 1 through 8 (of 8 total)