Dani-Girl
Forum Replies Created
-
Forum: Plugins
In reply to: [Secure Custom Fields] Positioning the FieldsYou can style through CSS in your template. The custom field is just returning text, or a URL or simple HTML
example
<div class="style1"> <?php the_field('yourfieldname'); ?> </div>
Css:
.style1 { font-family: 'Courier'; overflow-x: hidden; background-color:#141414; background-image: url('bg.png'); background-repeat: repeat-x; background-position: center top; }
Forum: Plugins
In reply to: [Secure Custom Fields] Muli-lingual Support?For those that are using qTranslate for their multi-lingual support, you just need to follow the advice found in this thread:
https://support.advancedcustomfields.com/discussion/4182/options-page-for-wpml-usage#Comment_11849
in the 2nd post by the Admin.
For it to work with qTranslate, to get the language code, just create your variable like this:
$lang = $q_config[language]; // return current language code
this will return the two character language code
Just edit your templates as advised in the post and voila, your language support works.
However, this can become very cumbersome for those who have several languages (currently, my site has 8 languages, so each field has to have 8 versions of it)
Hopefully, an update to this great plugin, will accommodate for quicktags (designated content based on the quicktag)
Forum: Fixing WordPress
In reply to: Custom Excerpt FunctionThat won’t work in this call:
$excerpt = $excerpt.’… [Read More]’;
Forum: Plugins
In reply to: [Instapress] [Plugin: Instapress] Show user's Liked photosNo support for this plugin?
Forum: Fixing WordPress
In reply to: Excerpt – Change to Characters not WordsTried Advanced Excerpt plugin and its actually broken. Doesn’t work no matter what I do in the settings. Author of the plugin hasn’t answered questions concerning it.
Forum: Fixing WordPress
In reply to: Excerpt – Change to Characters not WordsNice link. I don’t see where it covers how to modify the get_the_excerpt() function.
I was able to get this much of a function coded, but it counts the characters in a shortcode and in HTML entities and leaves uncompleted words.
How can I stop it from counting the characters in HTML and shortcodes, and finish a word?
function get_my_excerpt(){ $excerpt = get_the_content(); $excerpt = substr($excerpt, 0, 200); $excerpt = $excerpt.'... '; return $excerpt;
Forum: Fixing WordPress
In reply to: Excerpt – Change to Characters not WordsThanks for the non-help. I just need a code to count characters, not snide remarks alright?
Forum: Fixing WordPress
In reply to: Excerpt – Change to Characters not WordsUnfortunately, we are using a template that will automatically change the positioning of elements as you re-size down, to accommodate for the various screens that will a user may be viewing with. Whether you’re on a 1080 screen or looking at it through your mobile device (through css detecting screen size and replacing elements).
The word count isn’t working for this layout, but I found that limiting to character count works fine.
Forum: Plugins
In reply to: [Mini twitter feed] [Plugin: Mini twitter feed] Making Changes to StylesFor this:
change the color of the links found in tweets (its currently a dark red)Which setting do I change? I don’t see any CSS settings that make the links red.
Forum: Fixing WordPress
In reply to: Category Page – PaginationOMGoodnes!! thank you that solved it.
I was given this code:
query_posts( array( ‘cat’ => 1, ‘posts_per_page’ => 4) );when I asked about only displaying posts from 1 category (we have no other categories) and to display more than the blog setting (which we have at only 2 entries)
thanks, that fixed it.
Forum: Fixing WordPress
In reply to: Category Page – PaginationAlright, i posted the code to my personal blog. Had to make it easy to understand:
Forum: Fixing WordPress
In reply to: Category Page – PaginationIn the mean time, I just went to my personal site and posted the code there:
Forum: Fixing WordPress
In reply to: Category Page – PaginationYes, this is for work, and I’m completely blocked from downloading/uploading anything to sites that are not approved. Not even a text file.
the code is only 39 lines. Can it be posted here?
Forum: Fixing WordPress
In reply to: Category Page – PaginationI’m blocked from the Pastebin site. Any other site i can use?
Forum: Fixing WordPress
In reply to: Category Page – PaginationThe template set I got had no category.php or archive.php so I had to create at least the category.php (reading the help articles, archive.php isn’t really needed)
I grabbed the pagination code from the index.php. the index/home page has a different design than the category template, so category had to be made from scratch.
tested with default parmalinks, and it still won’t paginate. The link looks like this on “Previous Entries”
https://localhost/?cat=1