• Hi, When i try to show placemarks post then return 404 error. What can i do to fix that. I’v also a list of placemarks under a map with link to each placemark with this same effect – 404 error. there is at all a possibility to see a placemarks like ordinary post?
    my shortcode-bgmp-list-marker file looks like this:

    <li id="<?php esc_attr_e( self::PREFIX ); ?>list-item-<?php esc_attr_e( $p->ID ); ?>" class="<?php esc_attr_e( self::PREFIX ); ?>list-item">
    	<h3 class="<?php esc_attr_e( self::PREFIX ); ?>list-placemark-title">
    		<?php echo apply_filters( 'the_title', $p->post_title ); ?>
    
    		<?php if( $viewOnMap ) : ?>
    			<span class="<?php esc_attr_e( self::PREFIX ); ?>view-on-map-container">
    				[<a href=";">ID ); ?>" class="<?php esc_attr_e( self::PREFIX ); ?>view-on-map">View On Map</a>]
    			</span>
    		<?php endif; ?>
    	</h3>
    <div class="<?php esc_attr_e( self::PREFIX ); ?>list-description">
    		<?php /* note: don't use setup_postdata/get_the_content() in this instance -- http://lists.automattic.com/pipermail/wp-hackers/2013-January/045053.html */ ?>
    		<?php echo apply_filters( 'the_content', $p->post_content ); ?>
    	</div>
    
    	<p class="<?php esc_attr_e( self::PREFIX ); ?>list-link">
    		<a>">
    			<?php echo wp_kses( $address, wp_kses_allowed_html( 'post' ) ); ?>
    		</a>
    	</p>
    
    <li class="<?php esc_attr_e( self::PREFIX ); ?>list-item">
    	<div class="<?php esc_attr_e( self::PREFIX ); ?>list-placemark-title">
    		<a>ID ); ?>">
    	<?php echo apply_filters( 'the_title', $p->post_title ); ?>
    </a>
    	</div>

    https://ww.wp.xz.cn/plugins/basic-google-maps-placemarks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    You need to use a filter to modify the custom post type registration arguments to allow archive pages. Dig into the source code for more details.

    Thread Starter ding111

    (@ding111)

    Where? sorry but im not coder. What i have to change and in which file? Could you explain it to me more accurately. I will be grateful, thanks

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

The topic ‘placemark-post 404 error’ is closed to new replies.