Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)
  • Thread Starter sdesigns

    (@sdesigns)

    How would I use the strreplace to remove the underscore with my code <?php $key="property_type"; echo get_post_meta($post->ID, $key, true); ?> I have not used that before for this

    Thread Starter sdesigns

    (@sdesigns)

    I am using the WP Property Plugin and that seams to be the meta value that it is in. It does show the value within the admin area not having the _ I just cant figure out how to pull that one and not the one with the underscore.

    Thread Starter sdesigns

    (@sdesigns)

    I have looked around and have found a few tutorials on the subject and that is why I then tried just the %property-type%/ and removed the properties from in front of the slug that is when I got the single post to now work. But I am now having issues with the pages showing correctly and am getting the 404 error there now.

    Anyone have an Idea of why this is?

    Thank you

    Thread Starter sdesigns

    (@sdesigns)

    Thanks but using the residential as a parent would not work.

    I have been doing some additional trying of options and if I set the Custom Rewrite Slug to just %property-type%/ the custom post type will work fine now with the Residential archive at residential/
    and the single posts going to /properties/ampersand-maple-cabin/

    But now I have a new issue I can not view any of my pages I get a 404 error such as for the page contact/
    My site permalink settings are custom structure : /%postname%/

    What could be making this happen

    Thread Starter sdesigns

    (@sdesigns)

    Pro.
    I had sent an email in yesterday but had not heard back so I posted here as well

    Thread Starter sdesigns

    (@sdesigns)

    Below are the errors I am seeing. It looks like 5 of them. Thanks you for any help

    TypeError: editor.settings.wpeditproKeyValueList is undefined

    getValues()
    plugin.js:16
    <anonymous>
    plugin.js:32
    e()
    wp-tinymce.php:12
    n()
    wp-tinymce.php:4
    B.prototype.init()
    wp-tinymce.php:12
    t/<()
    wp-tinymce.php:12
    n/this.loadScripts/p/<()
    wp-tinymce.php:5
    n()
    wp-tinymce.php:4
    n/this.loadScripts/p()
    wp-tinymce.php:5
    n/this.loadScripts/p/</<()
    wp-tinymce.php:5
    i()

    TypeError: this.getDoc(…) is undefined

    B.prototype.getBody()
    wp-tinymce.php:12
    acf.fields.wysiwyg.add_events()
    input.min.js:2
    <anonymous>
    input.min.js:2

    TypeError: editor.settings.wpeditproKeyValueList is undefined
    getValues()
    plugin.js:16
    <anonymous>
    plugin.js:32
    e()
    wp-tinymce.php:12
    n()
    wp-tinymce.php:4
    B.prototype.init()
    wp-tinymce.php:12
    t/<()
    wp-tinymce.php:12
    n/this.loadScripts/p/<()
    wp-tinymce.php:5
    n()
    wp-tinymce.php:4
    n/this.loadScripts/p()
    wp-tinymce.php:5
    n/this.loadScripts()
    wp-tinymce.php:5
    n/this.loadQueue()
    wp-tinymce.php:5
    t()
    wp-tinymce.php:12
    B.prototype.render()
    wp-tinymce.php:12
    C.execCommand()
    wp-tinymce.php:13
    acf.fields.wysiwyg.init()
    input.min.js:2
    <anonymous>
    input.min.js:2
    .each()
    jquery.js:2
    n.prototype.each()
    jquery.js:2
    <anonymous>

    TypeError: this.getDoc(…) is undefined

    B.prototype.getBody()
    wp-tinymce.php:12
    B.prototype.getContent()
    wp-tinymce.php:12
    j()
    wp-seo-post-scraper-341.min.js:1
    [18]</J.prototype.getText()
    wp-seo-post-scraper-341.min.js:1
    [18]</J.prototype.getData()
    wp-seo-post-scraper-341.min.js:1
    bound ()
    self-hosted
    [253]</z.prototype.getData()
    wp-seo-post-scraper-341.min.js:6
    [253]</z.prototype._pureRefresh()
    wp-seo-post-scraper-341.min.js:6
    bound ()
    self-hosted
    d()
    wp-seo-post-scraper-341.min.js:5
    k()
    wp-seo-post-scraper-341.min.js:5
    r()
    wp-seo-post-scraper-341.min.js:5
    [253]</z.prototype.refresh()
    wp-seo-post-scraper-341.min.js:6
    bound ()
    self-hosted
    d()
    wp-seo-post-scraper-341.min.js:5
    o()
    wp-seo-post-scraper-341.min.js:5
    n()
    wp-seo-post-scraper-341.min.js:5
    wp-tinymce.php:12:26948

    TypeError: this.getDoc(…) is undefined

    B.prototype.getBody()
    wp-tinymce.php:12
    B.prototype.getContent()
    wp-tinymce.php:12
    j()
    wp-seo-post-scraper-341.min.js:1
    [18]</J.prototype.getText()
    wp-seo-post-scraper-341.min.js:1
    [18]</J.prototype.getData()
    wp-seo-post-scraper-341.min.js:1
    bound ()
    self-hosted
    [253]</z.prototype.getData()
    wp-seo-post-scraper-341.min.js:6
    [253]</z.prototype.pluginsLoaded()
    wp-seo-post-scraper-341.min.js:6
    [305]</j.prototype._pollLoadingPlugins()
    wp-seo-post-scraper-341.min.js:10
    bound ()
    self-hosted

    Thread Starter sdesigns

    (@sdesigns)

    That was it thank you. It had worked till the last update of woo

    Thread Starter sdesigns

    (@sdesigns)

    Adding this feature would be great as I have the same problem. People keep using a cappital letter when it should be lowercase or the reverse then they get locked out.

    Thread Starter sdesigns

    (@sdesigns)

    Thank you that did it.

    Thread Starter sdesigns

    (@sdesigns)

    Thank you I have figured out how to show the post from 3 of my post types catigories but I cant get pagination to work with it. When I click on page 2 it goes to page two but shows the same posts as on page one. Thank you for any help.

    <?php
    
    $myquery['tax_query'] = array(
        'relation' => 'OR',
        array(
            'taxonomy' => 'category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
        array(
            'taxonomy' => 'outtake_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
    	array(
            'taxonomy' => 'story_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
    
    );
    query_posts($myquery);
    
    ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            							<div class="metadate"><?php the_time('l, F j, Y') ?></div>
    
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    
    <div id="featuredimage">
    
    <?php
    if ( has_post_thumbnail()) {
      echo '<a href="' . get_permalink($post->ID) . '" >';
      the_post_thumbnail();
      echo '</a>';
    }
    ?><!-- end featured image --></div>
    					<div class="entry">
                        <?php the_excerpt(); ?>
    
    					</div>
                                     <br class="clearfloat" />
    
    				</div>
    
    	<?php endwhile; ?>
    
    <?php wp_pagenavi(); ?>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    
    	<?php endif; ?>
    Thread Starter sdesigns

    (@sdesigns)

    Thank you for the info. I looked at this and added the pagination info to the code but it still does not work. It is showing there is a second page of posts wich is the right number of them but when I click on it the posts are the same as on the first page. My guess is that I am missing somthing in my code any help would be great as I have been stumped on this for days now. Thank you

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $myquery['tax_query'] = array(
        'relation' => 'OR',
        array(
            'taxonomy' => 'category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
        array(
            'taxonomy' => 'outtake_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
    	array(
            'taxonomy' => 'story_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
      'paged' => $paged
    );
    query_posts($myquery);
    
    ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            							<div class="metadate"><?php the_time('l, F j, Y') ?></div>
    
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    
    <div id="featuredimage">
    
    <?php
    if ( has_post_thumbnail()) {
      echo '<a href="' . get_permalink($post->ID) . '" >';
      the_post_thumbnail();
      echo '</a>';
    }
    ?><!-- end featured image --></div>
    					<div class="entry">
                        <?php the_excerpt(); ?>
    
    					</div>
                                     <br class="clearfloat" />
    
    				</div>
    
    	<?php endwhile; ?>
    
    <?php wp_pagenavi(); ?>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    
    	<?php endif; ?>
    Thread Starter sdesigns

    (@sdesigns)

    Thank you I have come up with a new code that is working great except for I cant get it to just show the one most recent post from the two custom post catigories it is showing all the posts.

    Thank you

    <?php
     $myquery['tax_query'] = array(
        'relation' => 'OR',
        array(
            'taxonomy' => 'adirondack_almanac_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
        array(
            'taxonomy' => 'outtake_category',
            'terms' => array('outdoor-recreation'),
            'field' => 'slug',
        ),
    );
    query_posts($myquery);
    
     while( $wp_query->have_posts() ) :
    $wp_query->the_post();
    
     ?>
    Thread Starter sdesigns

    (@sdesigns)

    Thank you for that info but it sitll is not working. Bellow is the full code I am using for this. When I use this I get nothing.

    <?php
    $wp_query = new WP_Query(array('showposts' => 1, 'post_type' => array('outtakes&outtake_category=outdoor-recreation','adirondack_almanac&adirondack_almanac_category=outdoor-recreation')));
    while( $wp_query->have_posts() ) :
    $wp_query->the_post();?>
       <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php
    if ( has_post_thumbnail()):
        the_post_thumbnail( 'feed-fixed' );
    endif;  ?></a>
        <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    <?php echo wp_trim_words( get_the_excerpt(), 20 ); ?>
     <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">>>More</a>
    
    <?php endwhile; ?>

    If I use just the below code I get the most recent from the two difrnt post types but I want to get the most recent post from these two post types but withing the custom post typs catigory of Outdoor-Recreation.

    <?php
          $recentPosts = new WP_Query(array('showposts' => 1, 'post_type' => array('outtakes','adirondack_almanac')));
    while( $recentPosts->have_posts() ) :
        $recentPosts->the_post();?>
    
       <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php
    if ( has_post_thumbnail()):
        the_post_thumbnail( 'feed-fixed' );
    endif;  ?></a>
        <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    <?php echo wp_trim_words( get_the_excerpt(), 20 ); ?>
     <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">>>More</a>
    
    <?php endwhile; ?>

    Thank you for your help

    Actually the ideal thing would be a way to set it so that when it is inputting the posts to the custom post types that it would get the category from the feed and set it to that category in the custom post type.

    The feed is https://www.adirondackalmanack.com/feed

Viewing 15 replies - 1 through 15 (of 31 total)