WordPress help - Ask your questions

Status
Not open for further replies.
Hi guys, can you tell me some blog seo methods & monetizing? i have a blog with :recipes ,healthy food ,sport etc ,now i have 26 articles ,every article have 1 picture .Thanks in advance and sorry for my bad english
 
I found the code I was looking for, this could be very helpful to anyone wanting to make their own theme!

function theme_options_panel(){
add_menu_page('Settings', 'Settings', 'manage_options', 'theme-options','wps_theme_func_Settings','' ,'3');
add_submenu_page( 'theme-options', 'Business Cards', 'Business Cards', 'manage_options', 'theme-op-settings', 'wps_theme_func_Business_Cards');
add_submenu_page( 'theme-options', 'FAQ', 'FAQ', 'manage_options', 'theme-op-faq', 'wps_theme_func_faq');
}


add_action('admin_menu', 'theme_options_panel');
function wps_theme_func_Settings(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>Settings</h2>
<center><h1>This is a Settings page</h1></center>
<?php }


function wps_theme_func_Business_Cards(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>Business Cards</h2>
<center><h1>This is a Business Cards page</h1></center>
<?php }


function wps_theme_func_faq(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>FAQ</h2>
<center><h1>This is a FAQ page</h1></center>
<?php }


Add this to the funstions.php of your theme and go check out your wordpress dashboard. :)
 
Hello how many i can create free wordpress.com blogs per day per month and per years ?
 
Hi,

Do you know how can I add custom taxonomies to a custom post permalink? I'm using Woocommerce and I need the products URL to be like this: mysite.com/taxonomy1/taxonomy2/post-title.

So far, I've tried this piece of code:

add_action('init','custom_init');
add_filter('post_type_link', 'story_permalink', 10, 3);

function custom_init(){
$story = array(
'query_var' => true,
'rewrite' => false,
);
$artist = array(
'query_var' => true,
'rewrite' => true
);
$writer = array(
'query_var' => true,
'rewrite' => true
);

global $wp_rewrite;
$story_structure = '/%artist%/%writer%/%story%';
$wp_rewrite->add_rewrite_tag("%story%", '([^/]+)', "story=");
$wp_rewrite->add_permastruct('story', $story_structure, false);
}

function story_permalink($permalink, $post_id, $leavename){
$post = get_post($post_id);

$rewritecode = array(
'%artist%',
'%writer%',
$leavename? '' : '%postname%',
$leavename? '' : '%pagename%',
);

if('' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft'))){

if (strpos($permalink, '%artist%') !== FALSE){
$terms = wp_get_object_terms($post->ID, 'artist');
if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $artist = $terms[0]->slug;
else $artist = 'unassigned-artist';
}

if (strpos($permalink, '%writer%') !== FALSE){
$terms = wp_get_object_terms($post->ID, 'writer');
if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $writer = $terms[0]->slug;
else $writer = 'unassigned-writer';
}

$rewritereplace = array(
$artist,
$writer,
$post->post_name,
$post->post_name,
);
$permalink = str_replace($rewritecode, $rewritereplace, $permalink);
}
else{
}
return $permalink;
}

Story = custom post
writer = custom taxonomy
artist = custom taxonomy

It does rewrite the product URL, but when I click on it I get a product listing, instead of the actual single page post.

Thank you
 
hi,

im using vantage theme from appthemes, how do i disable or totally remove the "add to favorites" option

cheers!
 
i am getting a blank white screen at the wp-admin page, if i go to wp-login.php i can enter details but then still get the white screen. I've disabled all plugins, renamed the index files to html, renamed the plugins folder and deleted any blank lines from the functions.php folder (every solution i found on google!) i think i have done as much as i can on my own - is there anywhere i can find an expert to take a look? thanks :)
 
i am getting a blank white screen at the wp-admin page, if i go to wp-login.php i can enter details but then still get the white screen. I've disabled all plugins, renamed the index files to html, renamed the plugins folder and deleted any blank lines from the functions.php folder (every solution i found on google!) i think i have done as much as i can on my own - is there anywhere i can find an expert to take a look? thanks :)

Try to read this:
http://wordpress.org/support/topic/white-screen-22
 
I have been using static websites and now want to move over to wordpress based websites. Any wordpress tutorial packages that anyone can recommend for beginner lessons throughout?
 
[h=2]Re: WordPress help - Ask your questions[/h]
I am a WordPress user.
I want to know WordPress just blogging site,
or any database site is created by WordPress.
 
Hi Guys. I am stuck plz help. I am using the u-design theme and I cant get the thumbnails on the front page to appear. I keep getting the grey default thumbnail box and you can click it and it goes to the right post and the thumbnail looks fine on the post page. But cant get the thumbnail to appear on the front page. Has anyone had this problem?
 
OK figured it out. I am very new and green so forgive my lack of knowledge. This is probably common knowledge for most BHW members but I thought I would share for the fellow noobs out there. On this theme you must install the 'GET THE IMAGE' plugin. Otherwise the thumbnails will not display on the front page. You also need this to make the 'u-design recent post' widget function properly. Hope this helps someone else.
 
I'm using the Cover PinPress Theme V1.4 and I just installed Adsense using the plugin Komoona and set the ad to show up on the header. For some reason the category/nav bar shows up right in the middle of the ad and I can't find a way to get rid of it or move it out of the way.

heres a pic:

1T4Ii.jpg
 
the height of the header div is set in css you need to change that

header-wrapper

thats the class for it you need to change

Hope this helps

I'm using the Cover PinPress Theme V1.4 and I just installed Adsense using the plugin Komoona and set the ad to show up on the header. For some reason the category/nav bar shows up right in the middle of the ad and I can't find a way to get rid of it or move it out of the way.

heres a pic:

View attachment 18322
 
Status
Not open for further replies.
Back
Top