Forum Replies Created

Viewing 9 replies - 166 through 174 (of 174 total)
  • gabrielcastillo

    (@gabrielcastillo)

    you can wrap this into a shortcode as well. Paste this in your functions.php file and you can now use the shortcode
    ” [my_content id=”Enter your page id number” title=Set this to true if you want to show title /] “

    function get_post_page_content( $atts ) {
    			extract( shortcode_atts( array(
    				'id' => null,
    				'title' => false,
    			), $atts ) );
    
    			$the_query = new WP_Query( 'page_id='.$id );
    			while ( $the_query->have_posts() ) {
    				$the_query->the_post();
    			        if($title == true){
    			        the_title();
    			        }
    			        the_content();
    			}
    			wp_reset_postdata();
    
    		}
    		add_shortcode( 'my_content', 'get_post_page_content' );
    Forum: Plugins
    In reply to: database in server
    gabrielcastillo

    (@gabrielcastillo)

    What are you trying to accomplish?

    in you would like to create a table, you need to goto phpmyadmin or some sort of mysql interface to create data in your new database.

    Then you can add a table, and insert fieldnames.

    gabrielcastillo

    (@gabrielcastillo)

    What theme are you using?

    Try using firefox with firebug installed.

    Then activate firebug in the top right corner of the screen. The bug will appear orange and a small screen will show, you will then need to goto console tab and reload the page. you will see data being proceeded. Then try uploading a image with this console open. If you have error’s you will see them in red. Post any error’s you see. This will give ppl a better understanding of what is happening if you have jquery or javascript error’s uploading.

    gabrielcastillo

    (@gabrielcastillo)

    where do you go to login?

    you should be login @ https://www.glutenfreedee.com/wp-admin

    You do not need FTP to edit your wordpress site or content, unless you are editing the files directly.

    gabrielcastillo

    (@gabrielcastillo)

    The code you are looking to edit is in the jquery code. You can remove the line below or just delete “by”.

    <p class="artist-outer">By <span class="artist"></span></p>' +

    The file is: ttw-music-player.php

    This is located in the includes folder of the plugin.

    gabrielcastillo

    (@gabrielcastillo)

    This plugin doesn’t sort the post’s. It basically adds div’s to your content editor. so you can post organize your post content.

    Example:

    `<div class=”first-div”>YOUR CONTENT HERE</div><div class=”second-div”>YOUR CONTENT HERE</div>

    So like the plugin say’s, create columns in your posts or pages.

    gabrielcastillo

    (@gabrielcastillo)

    Looks like you have two comments sections, one is custom comments form and two is wp comments form. The first comments form has no action set, I don’t see javascript to handle the form data.

    When I submitted the form you are getting error with your success page.
    <script>(function(){var e = document.getElementById("coldform_verify");e.parentNode.removeChild(e);})();</script>

    Error: e is null

    In the code I do not see #coldform_verify

    I believe this has to do with the coldform plugin.

    gabrielcastillo

    (@gabrielcastillo)

    Can you post a link so I can view in console?

    Try this out. I used this code to display image, and text from custom post meta box’s.

    function display_custom_meta($atts, $content = NULL){
     global $post;
     extract( shortcode_atts(array(
    
     'param' => '',
    
     ),$atts));
    
     $post_meta = get_post_meta($post->ID,'_meta_contet',TRUE);
    
     return '<div>'.$post_meta['post_meta_box_name'].'</div>';
    
    }
    add_shortcode('display_custom_meta','display_custom_meta');

    Change the meta name’s to what you need to , but this should work fine you have custom post meta on you page.

Viewing 9 replies - 166 through 174 (of 174 total)