Forum Replies Created

Viewing 15 replies - 16 through 30 (of 546 total)
  • That’s great to know…

    You should mark this topic resolved if it is.

    I think you’re lucky your install is working… I can’t get the combination of wp 2.9.2+standalone 1.9.8.3 + slidepress 1.3.7 to work… the swf is there, just no images and no navigation — no matter what.

    That said, one other bug in slidepress, imho, is that CHECKING the THICKBOX option in slidepress actually disables it, UNCHECKING enables it — completely counter-intuitive, but hey, that’s just my two.

    But if your gallery is opening in a popup, that might be the issue. If you go to the SlidePress Bug Report setting page, you can read your system settings to see if thickbox is enabled or not and compare that to whether the option is check or unchecked in the setup settings.

    HTH — wish I could get a response from ssp/slidepress folks, too. I’ve sent 3 bug reports, 2 direct emails to both todd and scott and posted ad nauseum in the standalone and slidepress forums.

    <?php get_header(); ?>
    <?php include (TEMPLATEPATH . ‘/sbdaytrips.php’); ?>

    <?php //loop to get content
    if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php the_content(); ?>

    <?php endwhile(); ?>

    <?php get_footer(); ?>

    That said, you can create a custom field with text content to display IF it exists in or outside of the loop.

    For example, using c2c’s excellent get custom plugin, you can add a custom field to the desired page (let’s call the key “default-text”) and call that from your custom page template outside of the loop with the plugin’s c2c_get_recent_custom(‘default-text’); function. But of course, that means the text will display for every page that uses your custom template, which is great if you have a common element for all pages.

    Within the loop however, you can call SPECIFIC text (default-text) for the current page only IF the custom field ‘default-text’ exists for that page using c2c_get_custom(‘default-text’);

    It will only display the specific text WHEN and IF that field exists for THAT page.

    You can read about the plugin here:

    https://coffee2code.com/wp-plugins/get-custom-field-values/

    It’s the one of my MUST-USE plugins for every site done as a CMS

    Or add a new quicktag tool button that can be used to insert a new window attribute on a per link basis…

    Something like:

    edButtons[edButtons.length] =
    new edButton('ed_target'
    ,'Open in New Window'
    ,' onclick="target=\'_blank\'"'
    ,''
    ,'r'
    ,-1
    ); // special case

    so that after you create your link in your post or page, you can insert the cursor after the href and click the new window button to insert the javascript onclick function

    You can always edit the quicktags.dev.js version and then upload it to the server with the quicktags.js name.

    Why not install coffeetocode.com’s excellent Get Custom plugin and add the url for each page or post that has one as a custom field?

    Then you’d use one of their functions (echo c2c_get_custom($key,$before,$after,$none,$between); (if in the loop)

    or the get_recent_custom() (if not in the loop)

    ??

    The plugin allows you to put html content before and after the value of the key ONLY if the key exists AND you’ve put somethine between the ticks ” for $between param – like a space or anything other than nothing

    I find this plugin an absolute must for retrieving custom fiels — it is the easiest to return and you can insert variables or dynamic code in it if you have adequate php skills.

    Thread Starter syncbox

    (@syncbox)

    I’ll give that a go. My real interest is showing a client how to use built-in WordPress functionality without errors or failures or… extra issues. But I’ll test this out.

    Thread Starter syncbox

    (@syncbox)

    But it doesn’t add null alt text. If you validate, you’ll have an error for every image where you do not MANUALLY add alt text. Hence a bug, imho.

    I’d be happy with a null alt text inserted.

    Thread Starter syncbox

    (@syncbox)

    Got this working….

    <?php
     $lastposts = get_posts('numberposts=300&child_of=323&post_type=page&post_parent=323&orderby=rand');
     foreach($lastposts as $post) :
        setup_postdata($post);
     ?>
     <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php echo c2c_get_custom('Org-Logo','<img src="https://domainobscured.org/wp-content/uploads/','" class="thumbsize" alt="" />','',' ',''); ?></a>
    
     <?php endforeach; ?>

    thanks for all your help!

    Thread Starter syncbox

    (@syncbox)

    No solution except to remove the server password protection… so it’s not that much of an issue… but it’s weird that the browser based uploader doesn’t have the problem.. only the flash based uploader.

    I wish there were a way to upload multiple files via the browser based uploader…. maybe a plugin?

    Thread Starter syncbox

    (@syncbox)

    Thank you SO much! I hadn’t thought to look within Scott’s plugins for a solution.

    I’ll post back when and if I get it to work.

    Thread Starter syncbox

    (@syncbox)

    Thanks, Michael, I found another post after I first posted that also included your above code… and have been trying to modify it to work… but no joy… it worked, but there was no data… hmmm, somethings wonky.

    THEN I realized that what I want is the child pages of another page… for example, the page I am displaying this all on is ‘Program Partners’ which has the id of ‘301’. It has some child pages:
    Partner Organizations (A-Z) (323)
    Partners by Service Category (324)

    I want to get the custom field data from Partner Organizations, 9which is 323) to display the meta keys of ‘Org-Name’ and ‘Service-Categories’ using the c2c function so I can put html tags before, after, between, after last, etc for each child page.

    I’m thinking I have to run the main loop and display that page’s content, etc… following it by an <?php endwhile; ?>

    Then… run a new query for p=323 and use something like <?php get_pages(‘arguments’); ?> to display/echo those custom field values.

    Then, I’d follow it with endwhile; and before the get_footer(), use an endif;

    But I keep getting a parsing error – Parse error: syntax error, unexpected T_ENDWHILE in[blahblah]

    Here’s what I am using for both loops, starting from my main content div (mc) and ending the page where I get my footer:

    <div id="mc">
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post mpi" id="post-<?php the_ID(); ?>">
    <h2 class="toptitle"><?php the_title(); ?></h2>
    <?php the_content(); ?>
    
    <p class="postmetadata"><?php edit_post_link('Edit this content ↑', '', ''); ?></p>
    
    </div>
    
    <?php endwhile; ?>
    
    <table class="spreadsheet"><tr>
    <th>Organization Name</th>
    <th>Education</th>
    <th>Public Safety</th>
    <th>Youth Development</th>
    <th>Family Support</th>
    <th>Health</th>
    <th>Financial Independence & Community Economic Development</th>
    </tr>
    <?php $my_query = new WP_Query('p=323');
    $args = array(
    'child_of' => 323,
    'parent' => 323,
    'sort_order' => 'ASC',
    'sort_column' => 'post_title',
    'hierarchical' => 0
    ); ?>
    <?php
      $pages = get_pages('child_of=323&parent=323&sort_column=post_title&sort_order=ASC&hierarchical=0');
      foreach ($pages as $page) {
    echo c2c_get_custom('Org-Name','<tr><th>','</th>','','');
    echo c2c_get_custom('Service-Categories','<tr><td>','</td>',' ','</td><td>','</td></tr>'); }
    ?>
    <?php endwhile; ?>
    </table>
    <!--THIS IS THE TABBED AREA OF THE SITE -->
    <?php include (TEMPLATEPATH . '/tabbercontent.php'); ?>
    
    <?php endif; ?>
    
    </div>
    <?php get_footer(); ?>

    Totally off base? Suggestions?

    I am seeing this in 2.9.1 in (grand)child pages displayed in a submenu…

    I’ve tried leaving these sub, sub pages’ menu orders all at 0, assuming they would then sort alphabetically by the title.

    I’ve tried using a value of 1-26 (for the starting letters A-Z) assuming that then, if there are 4-5 that start with the letter “C” that all the “C” titles would group together, then sort per the next letter…. but…. NO, no joy. They group together, but then are not in order within the sub-grouping…

    For the most part, my menu uses the order value for displaying the main and sub menus and it all works as expected. It’s this sub-sub menu that needs to order A to Z that doesn’t fully work correctly. While I CAN get them to sort alphabetically, within a letter group, they don’t sort in any logical manner.

    I end up with something like:

    Healthy East Chicago
    Holy Trinity
    Health Visions

    In any instance I can think of, I’d expect this to be

    Health Visions
    Healthy East Chicago
    Holy Trinity

    Any ideas, anyone? I can’t provide the URL as the dev site is under additional server authentication…. but basically, my function call is written:

    <?php wp_list_pages('title_li=&sort_column=menu_order&exclude=24,28,292,300,329,330,331,343,344,346,380'); ?>

    Your ideas all very welcome as I am up against a deadline and my head is bloody from banging it against the keyboard!

    Did you try simply updating the settings for permalinks? I’ve run into the same issue with page not found after upgrading and I just went to permalink settings and verified they were all the same and clicked the update/save button and it fixed it all.

    HTH

Viewing 15 replies - 16 through 30 (of 546 total)