deltamatrix
Forum Replies Created
-
Forum: Themes and Templates
In reply to: QUESTIONS about single post templatesany help with he single post templates would be greatly appreciated …. please just any reply. Thank you for your time.
Forum: Themes and Templates
In reply to: post_class problemalchymyth, i removed the
<?phpand the?>opening and closing tags. Now the site works and no parse errors. Now when i go to target all the post with the tag “review“, every post including the ones with a different tag, receive the change.
the css i used..tag-review { background-color:red; }Forum: Themes and Templates
In reply to: post_class problemI have copied the parents theme index.php file over to the child theme. ( wp-content/themes/custom-code/index.php ). The blank page problem is solved. The site shows properly now. i have added the post_class to the child themes index.php file like this.
<?php <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> ?>When i load the site i get a parse error.
” Parse error: syntax error, unexpected ‘<‘ in C:\wamp\www\wordpress-test\wp-content\themes\custom-code\index.php on line 19“.in my text editor I checked line 19 and it is this.
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>i copied it straight out of the post_class wordpress page.
codex.ww.wp.xz.cn/Function_Reference/post_classForum: Themes and Templates
In reply to: post_class problemHello alchymyth, thanks so much for the reply. I am using headway themes and i am running a wamp set up so i cant provide a live link. In my child theme i have three index.php files in different locations.
wp-content/themes/custom code/css/index.php,
wp-content/themes/custom code/images/index.php, and
wp-content/themes/custom code/js/index.phpI inserted
<?php <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>inside all of them.
This is the html that was outputed
<div id="post-51" class="post-51 post type-post status-publish format-standard hentry category-pc tag-review author-test">but the same html is there with or without the
<?php <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>inside the index.php files. I am starting to think that i need an index.php file in my main child theme folder
wp-content/themes/custom code/index.php.
but when i tried to put an empty index.php file their my front page goes blank.
Forum: Themes and Templates
In reply to: post_class problemhello, i am trying to target and edit the look of a specific posts, shown in the front page,based on their tag. I have added the post_class or
<?php <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>in my child themes /css/index.php file. When i go to edit the desired post based on its tag, it does not work. my css code is
.tag-review .entry-title { border:none; }can somebody help me solve this problem. In my child theme,I have a wp-content/theme folder/css/index.php, /images/index.php, and a /js/index.php. Which index.php does
the<?php <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>go in? The “.review” class is the tag of the posts im trying to target and “.entry-title” is what i am trying to change in the post. Can some one guide me in the right direction please?…Thank you.
Forum: Plugins
In reply to: [Global Content Blocks] Turn ON or OFF..i forgot to add that the conditional statements could be much like the functionality of widget logic visual….anyway i hope you seriously consider. Thank you.
Forum: Plugins
In reply to: [Global Content Blocks] Turn ON or OFFYes, thank you for your quick response. To be honest i downloaded your plugin for the reusable content( obviously ) but secretly hoping it had some sort of option to enable or disable the content in all pages, from one switch or location at once. I really hope you do consider this feature in the future( hopefully soon, im almost begging you ) for this would turn your already useful plugin into a MUST HAVE plug in for any serious wordpress use…I hope im not asking for too much, but another great feature that would go hand in hand with the on/off switch would be conditional tags…maybe?…have it turn on or off based on some conditional tags( simplified with switches and buttons also ) all by itself, based on certain conditions. This would allow to execute certain php code im using in the hooks, but with out dealing with all the codes and hooks and stuff. Just paste the global content block ( pre written code ) and with the conditional switches it does its work by it self. Make reusable content more reusable. Thank you for your reply and i hope you like and consider these ideas. Would be nice to see it come into frutation. You have a immensely useful piece of work here. Keep up the good work sir.
Forum: Fixing WordPress
In reply to: HIDE Custom Fieldsi figured it out. Thank you for your response.
Forum: Fixing WordPress
In reply to: HIDE Custom FieldsIt did not work. But i had added and changed couple of other stuff too. here is what im currrently using now.
<?php if(is_front_page() || is_category() || is_tag() ) { ?> <?php wpsocialite_markup(); ?> <?php } ?> <?php if(is_single() ) { ?> <h6 class="meta-field">Source : <?php $text = get_post_meta( get_the_ID(), 'Source', TRUE ); echo make_clickable( $text ); ?></h6> <h7 class="meta-field">Via : <?php $text = get_post_meta( get_the_ID(), 'Via', TRUE ); echo make_clickable( $text ); ?></h7> <h4 class="meta-category"> Category : <?php the_category(' » '); ?> </h4> <h5 class="meta-tags"> Tags : <?php the_tags(' '); ?></h5> <?php } ?>it is the same thing just added a couple of headers and changed the custom fields name. I put your code under mine and it did not work.
Thank you so much for replying to issue, all i need is to hide the custom fields when empty. hope we can figure this out..Forum: Fixing WordPress
In reply to: Make Custom Filed Data into a clickable link.Ok forget it guys. I got it. Just figured it out. if this helps anyone out then heres what worked.
<?php if(is_single() ) { ?>
<h6 class=”meta-field”>Source : <?php $text = get_post_meta( get_the_ID(), ‘Mood’, TRUE );
echo make_clickable( $text ); ?></h6>
<h7 class=”meta-field”>Via : <?php $text = get_post_meta( get_the_ID(), ‘Style’, TRUE );
echo make_clickable( $text ); ?></h7>
<?php } ?>this would show 2 custom fields with clickable links from their values ONLY in the post pages but nor on the front page..if you want to show these in every page delete if(is_single() ) {?>
you can change the names(mood,style) the header tag number, and class names to suit your editing needs.Forum: Plugins
In reply to: [WPSocialite] Conditional TagsHello Tom, sorry for the late response but i really got into wordpress’s core for a while…i did not try your code yet. I deleted everything and started customising wp from scratch and did not run into the same problem anymore. I just figured you corrected something in the plug-in. But now i am trying to exclude wpsocialite from the single posts …just want it to show on my front page only…how would i do that.. what would i put in the “array” field using the code above?…thank you for your time Tom…extremely useful plugin you have here..cheers…
Forum: Plugins
In reply to: [Grab & Save] Grab & save for featured imagesHello Maruan…you can probalty use auto post thumbnail http://ww.wp.xz.cn/plugins/auto-post-thumbnail/
only works with your first image in the post though…cheersForum: Plugins
In reply to: [Pressbox] Does not link to dropbox appi just solved the invalid header error on this plug in….(anybody looking, i just went around it by network activating from the plugins dashboard instead)…to encounter another one “request to link is invalid”…im pretty sure dropbox with its new updates, severed the way this plugin connects with it…shame this is an incredibly innovative and useful plug in that potencially saves you a lot of money in hosting,bandwitdh, and performance….hopefully somebody updates it, its just a matter of connecting with dropboxes new api and stuff.
Forum: Plugins
In reply to: [wp-days-ago] Date displays as 'Some time in the future' for new posts.i just got the same problem…all of a sudden the “some time in the future” message comes out instead of 1 minute ago..it just happened for no reason..all i can think of is i did deactivate the plugin because i was testing other plugins…2 days later the message came out..now i activated the plug in and the message persist..im using the ajax version…i will clear browser cache delete plugin and php entries..then install again..
Forum: Networking WordPress
In reply to: Cant use Multisitetalked to my webhost…yeah we had to delete it and install a new wordpress….softaculous should do something about that….thank you guys