Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter Rub3X

    (@rub3x)

    Thank you, and thanks for your dedication to the community ๐Ÿ™‚

    Thread Starter Rub3X

    (@rub3x)

    Ah I see why it does it. I created the table manually with the default 5 rows 5 columns or whatever it is. Then when my script populates the table it doesn’t add the additional 1s for each new row in post_meta. So the table itself has 50 rows while there’s only five 1s set in post_meta. So when you click save it must see there’s more rows in the table than there are in post_meta and flips them all to 0 by default.

    By chance is there just a way to disable the show/hide row feature within the plugin?

    Thread Starter Rub3X

    (@rub3x)

    If you’re asking what I think you’re asking, go to Appearence -> Theme options -> Sections

    There you can pick and choose which categories show up on the home page and customize their colors.

    Thread Starter Rub3X

    (@rub3x)

    Looks like you’ll also need magazine.php to figure this out. I read the code and it looks like I should be able to change foreach ( $sections[‘section’] as $section ) {

    to

    while ($x < 10) {

    and it should work. And it does…except it doesn’t put the stories in different columns, it puts it all in a single column…

    wp_reset_postdata();
    	$sections = array();
    	parse_str( $xinmag_options['section_order'], $sections );
    	$col = 0;
    	$column = 3;
    	foreach ( $sections['section'] as $section ) {
    		if ( $column > 1 && $col == 0 )
    			echo "\n" . '<div class="row">';
    		echo "\n" .'<div id="section-' . $section . '" class="section-home large-4 columns">';
    		$col = $col + 1;
    		if ( $col == 3 )
    			$col = 0;
    		xinmag_section_display( $section );
    		echo '</div>';
    		if ( $col == 0 )
    			echo '</div><!-- row -->';	 //row
    	}
    	if ( $col > 0 )
    		echo '</div><!-- row -->';
    ?>
    </div><!-- content -->
    Thread Starter Rub3X

    (@rub3x)

    I know how to use permalinks….

    Anyways for those who might have the same issue download the Permalinks Migration plugin.

    Akismet…track back validation….and then who cares after that.

    Thread Starter Rub3X

    (@rub3x)

    Issues resolved thanks to Firas in IRC ๐Ÿ™‚

    Forum: Plugins
    In reply to: Ordering posts
    Thread Starter Rub3X

    (@rub3x)

    Yea I got it after my last post. Edited the cost clause in manually, and surprisingly WP is still functional ๐Ÿ˜€

    Forum: Plugins
    In reply to: Ordering posts
    Thread Starter Rub3X

    (@rub3x)

    The SQL query it’s doing is

    ORDER BY post_date desc

    Obviously not the function I need.

    Forum: Plugins
    In reply to: Ordering posts
    Thread Starter Rub3X

    (@rub3x)

    $posts = query_posts($query_string . '&orderby=cost&order=desc');
    <?php if (have_posts()) : ?>
    	<?php
    while (have_posts()) : the_post(); ?>
    			<!-- post start -->
    			<div class="clearfix post">
    				<h1><?php the_title(); ?></h1>
    					<?php the_content('Site Details'); ?>
    			</div>
    			<!-- post end -->
    		<?php endwhile; ?>

    That’s exactly what I have.

    Forum: Plugins
    In reply to: Ordering posts
    Thread Starter Rub3X

    (@rub3x)

    Hmm I added $posts = query_posts($query_string . ‘&orderby=cost&order=desc’); before the loop and there was no change ;(

    Forum: Plugins
    In reply to: Ordering posts
    Thread Starter Rub3X

    (@rub3x)

    Sorry what’s $query_string ?

    Thread Starter Rub3X

    (@rub3x)

    Ok for anyone with this issue I found this:

    http://www.moskalyuk.com/blog/removing-curly-quotes-from-wordpress-20/

    Open

    $curl = preg_replace(“/’s/”, ‘โ€™s’, $curl);
    $curl = preg_replace(“/'(\d\d(?:โ€™|’)?s)/”, “โ€™$1”, $curl);
    $curl = preg_replace(‘/(\s|\A|”)\’/’, ‘$1โ€˜’, $curl);
    $curl = preg_replace(‘/(\d+)”/’, ‘$1โ€ณ’, $curl);
    $curl = preg_replace(“/(\d+)’/”, ‘$1โ€ฒ’, $curl);
    $curl = preg_replace(“/(\S)'([^’\s])/”, “$1โ€™$2”, $curl);
    $curl = preg_replace(‘/(\s|\A)”(?!\s)/’, ‘$1โ€œ$2’, $curl);
    $curl = preg_replace(‘/”(\s|\S|\Z)/’, ‘โ€$1’, $curl);
    $curl = preg_replace(“/'([\s.]|\Z)/”, ‘โ€™$1’, $curl);
    $curl = preg_replace(“/ \(tm\)/i”, ‘ โ„ข’, $curl);
    $curl = str_replace(“””, ‘โ€’, $curl);

    Open wp-includes/functions-formatting.php and comment out those lines. Also avoid using MS office, because apps like that use those as well. Try editing in note/wordad or the WP editor.

    Now..does anyone know how to remove all previous posts that have those chars in it? A simple find replace query won’t work, it has SQL errors idk why. Using a text editor won’t work either =\

    Thread Starter Rub3X

    (@rub3x)

    It’s already at UTF-8. =\

    Forum: Plugins
    In reply to: Two domains one install
    Thread Starter Rub3X

    (@rub3x)

    I really don’t want two seperate installs and databases..that’s twice the work in maintaining it =\

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