• Resolved watermelonkid

    (@watermelonkid)


    I cannot get any values to return using the code provided. Can someone show me a code example that actually pulls custom field data associated with the current page?

    For example, I need to echo the value of a select box that associates a single value with every page. So in my template, I have tried several different ways of trying to echo the value associated with the current page:

    <?php
    $loop = new WP_Query();
    while ( $loop->have_posts() ) : $loop->the_post();
    $field = $cfs->get('pdf_chapter_association'); ?>
    
    <h1><?php echo $field; ?></h1>
    
    <?php endwhile;
    wp_reset_query(); ?>

    Doesn’t return anything.

    Then outside the loop:
    <?php $field = $cfs->get('pdf_chapter_association'); ?>

    Doesn’t return anything.

    What am I doing wrong?

    https://www.ads-software.com/extend/plugins/custom-field-suite/

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thanks. What about WP super cache? I don’t have plugins loaded and am just designing the site now and the page load is very slow. Its seem super cache will serve static pages so the pages will load alot faster.

    I’ve used W3 Total Cache in the past without any problems. I don’t have much experience with Super Cache.

    I don’t have plugins loaded and am just designing the site now and the page load is very slow.

    If your site is running slow without any plugins, then caching isn’t going to help much. You’ll need to figure out the underlying issues.

    For example, if your web server is running out of memory, performance will be poor. If your database is being used by a bunch of other high-traffic sites, then you might need to adjust its configuration.

    If you need help specifically for Custom Field Suite, consider joining the forums: https://uproot.us/forums/

    Both CFS and ACF are server-side plugins. The same data is being returned, regardless of which browser is used.

    The only difference is how each browser handles invalid HTML. If you had quotes within your “post_link” field, each browser handles the error a little differently.

    Logikal, I am no programming genius, but I am aware that PHP is server side and therefore should output the same information regardless of browser. Nonetheless I am still confident I was getting that error. I’ve since tried your plugin on a different site and it is working great. Either way, I wanted to thank you for your hard work and for a great plugin. I really appreciate your effort in creating the plugin and in turn for your support in implementation. Without kind people like you, I don’t know what my websites would look like…

    Hi logikal,
    I’m just getting to install your plugin now… another plugin question for capability issues – Have you used WPSEO (Yoast SEO) or AllinOneSEO (or any other SEO plugin) -Are there other you’d recommend? If so, have you encountered any conflicts with your plugin. I’ve heard from others, including the author, that WPSEO has problems with ACF plugin…
    Thanks again for your help.

    Logikal, I am no programming genius, but I am aware that PHP is server side and therefore should output the same information regardless of browser.

    I’m experiencing a similar issue where different browsers are creating different results; FF is showing data correctly and IE and Chrome are not showing the data at all. The page is html validated – never experience browser dependent results in pulling data from a mysql db??….
    Here’s the link:
    https://50.116.66.243/~ab27853/patient-services/injury-evaluation-and-treament/

    Another issue I’ve found is that when clicking “Add Row” in my posts for a looped field, add row actually adds two rows instead of one. Also, the WYSIWYG editor is unusable when adding a row until i publish or update the page at which point it expands and I can use the box appropriately. Any way to add the insert media button to the WYSIWYG editor?

    Try upgrading to CFS 1.3.3.

    andr923

    (@andr923)

    Thanks Logikal. The latest update (1.3.5) makes it so the text editor is immediately usable when I add a row which is great cause I no longer have to update the page. But, “add row” still adds TWO rows, not ONE for some reason. Also, there is no option for editing html, or adding any sort of media (images etc…) which obviously would be great.

    logikal16

    (@logikal16)

    @andr923

    Thanks. I’ll look into that loop issue, and for adding images into the wsiwyg field.

    As for the code editor, click on the far right wysiwyg button (“show kitchen sink”). The “HTML” button is on the second row.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘[Plugin: Custom Field Suite] No Value Returned’ is closed to new replies.